Access denied for user 'root'@'localhost' (using password: YES)

1.以管理員身份打開cmd,切換到MySQL的bin目錄mysql

 2.關閉MySQL服務器sql

net stop mysql服務器

3.跳過輸入密碼的步驟mysqld --defaults-file="D:\MySQL\my.ini" --console --skip-grant-tablesip

(注意:文件名字與路徑要與本身的吻合) cmd

4.重啓服務器console

net start mysqltable

5.登陸MySQL服務器登錄

mysql -u root -p
輸入密碼以後就能登陸成功了file

相關文章
相關標籤/搜索