当前位置:Gxlcms > 数据库问题 > MySQL使用错误解决:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

MySQL使用错误解决:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

时间:2021-07-01 10:21:17 帮助过:32人阅读

解决方法:

⑴打开mysql中的my.ini(如果没有就将my-default.ini复制一份,并修改为my.ini);

⑵在[mysqld]下面空白行直接添加skip-grant-tables;

⑶重启mysql,在cmd页面输入mysql,按回车键即可。

注:这会使你的mysql无法设置密码,但对个人使用而言这岂不是更省了一步!

MySQL使用错误解决:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

标签:tables   mysqld   错误   localhost   没有   grant   重启   添加   access   

人气教程排行