資料庫連接配接錯誤2058
打開cmd:mysql -u root -p
輸入密碼自己的sql密碼
進入mysql執行下面語句
ALTER USER’root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘自己的密碼’;
修改後儲存
重置密碼:alter user’root’@‘localhost’ identified by ‘root’
打開cmd:mysql -u root -p
輸入密碼自己的sql密碼
進入mysql執行下面語句
ALTER USER’root’@‘localhost’ IDENTIFIED WITH mysql_native_password BY ‘自己的密碼’;
修改後儲存
重置密碼:alter user’root’@‘localhost’ identified by ‘root’