ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)解決辦法

1.修改MySQL配置文件 my.cnf 在[mysqld]加入 skip-grant-tables 2.重啓MySQL服務 3再次執行 mysql -u root -p 不需要輸入密碼 4.修改密碼 update user set Password=PASSWORD('888888') where User='root'; 下次登錄就使用888888來登錄
相關文章
相關標籤/搜索