原文:錯誤代碼 1045 Access denied for user 'root'@'localhost' (using password:YES)

前言 現象是用MySQL . Command Line Client可以使用root賬號進入,但是其它navicat,phpsqladmin,mysql workbench,heidisql用root賬號或者其它賬號都是進不去,提示以下錯誤: 錯誤代碼 Access denied for user root localhost using password:YES ,由於數據庫訪問不了,訪問進來 ...

2018-03-18 17:08 0 3997 推薦指數:

查看詳情

MySql錯誤1045 Access denied for user 'root'@'localhost' (using password:YES)

1、先停止mysql服務 2、進入mysql的安裝路徑,找到並打開my.ini文件,找到[mysqld],在該行下面添加 skip_grant_tables,也就是通知mysql,在登陸的時候跳過密碼的驗證,保存后退出 3、然后重啟mysql服務 4、在控制台輸入:mysql -u root ...

Sat Dec 22 03:39:00 CST 2018 0 2676
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM