原文:錯誤-linux centOS7-MySQL登錄時出現Access denied for user 'root'@'localhost' (using password: YES) 拒絕訪問

.錯誤提示 .修改MySql配置文件my.cnf,新增skip grant tables 添加skip grant tables,這樣mysql可以免密登錄。 .重啟服務重啟mysqld服務 .再次連接MySql,重置密碼任意密碼就可以進入了 切換到mysql數據庫 重置密碼 為 root update user set authentication string password root w ...

2021-03-15 22:40 0 281 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM