centos7.8登錄mysql5.7時:Access denied for user 'root'@'localhost' (using password: YES)

錯誤描述: 首先進入 /var/log/mysqld.log後查看密碼時,登錄輸入密碼報錯。 解決: 1.vim /etc/my.cnf 2.[mysqld]下一行添加 「skip-grant-tables」,wq保存退出 3.之後登錄mysql密碼爲空,直接enter進入
相關文章
相關標籤/搜索