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

#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

原文链接:https://www.cnblogs.com/losbyday/p/5828667.html
本文来源 爱码网,其版权均为 原网址 所有 与本站无关,文章内容系作者个人观点,不代表 本站 对观点赞同或支持。如需转载,请注明文章来源。

© 版权声明

相关文章