MySQL出现Access denied for user ‘root’@’localhost’ (using password:YES)

连接时MySQL出现了下面的错误:

Access denied for user ‘root’@’localhost’ (using password:YES)

解决的办法是先停止MySQL服务,在my.ini文件的最下面加入一行:

skip-grant-tables

再启动MySQL服务,就可以了。

猜你喜欢

转载自www.cnblogs.com/mstk/p/9693153.html