linux mysql报错Access denied for user 'root'@'localhost' (using password: YES)


1、service mysqld stop停止mysql服务器

2、find / -name my.cnf 查找mysql配置文件的位置打开

3、在[mysqld]后添加skip-grant-tables

4、启动mysql :service mysqld start


————————————————
版权声明:本文为CSDN博主「awake720」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/awake720/article/details/90736198

猜你喜欢

转载自www.cnblogs.com/guanxiying/p/12157944.html