Mysql导入zabbix的sql语句时报错:ERROR 1045 (28000)

时间:2016-09-01 11:10:15   收藏:0   阅读:2874

#Warning: Using a password on the command line interface can be insecure.
#ERROR 1045 (28000): Access denied for user ‘zabbix‘@‘localhost‘ (using password: YES)

解决:

    mysql -uroot -e"delete from user where user=‘ ‘;" #删掉空用户
    mysql -uroot -e"flush privileges;"         #刷新权限 

PS:我的root没有设置密码。。。。

参考:http://blog.csdn.net/jiaping0424/article/details/51253202

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!