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