标签:
MySQL创建新用户后无法登录,提示 Access denied for user ‘username‘@‘localhost‘ (using password: YES) ,多半是因为存在匿名用户,要解决这个问题只要删除数据库中的匿名用户即可。
MySQL新建用户后无法登录,提示 Access denied for user ‘username‘@‘localhost‘ (using password: YES) 的解决方法:
请使用root账户通过命令行或PHP程序运行以下代码
DELETE FROM `mysql`.`user` WHERE `user`=‘‘;
FLUSH PRIVILEGES;
Mysql创建新用户后无法登录,提示 Access denied for user 'username'@'localhost' (using password: YES)
标签:
原文地址:http://www.cnblogs.com/bylin/p/5216620.html