MySQL本地登录失败

来源:互联网 发布:windows pe如何分区 编辑:程序博客网 时间:2024/05/01 16:59

问题:

ERROR 1045 (28000): Access denied for user 'vnap'@'localhost' (using password: YES)


解决方法:

使用root用户登录,删除匿名用户。

select user, host from mysql.user where user='';
delete from mysql.user where user='';
flush privileges


参考:

http://stackoverflow.com/questions/10299148/mysql-error-1045-28000-access-denied-for-user-billlocalhost-using-passw


0 0
原创粉丝点击