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

1、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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章