程式人生 > >解決用navicate遠端連線資料庫出現1045 access denied for user 'root'@'localhost' using password yes
解決用navicate遠端連線資料庫出現1045 access denied for user 'root'@'localhost' using password yes
阿新 ••發佈:2018-11-13
在mysql命令列中執行
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456XXX');
GRANT ALL PRIVILEGES ON *.* TO 'root' @'%' IDENTIFIED BY '123456XXX' WITH GRANT OPTION;flush privileges;
若以上方法行不通則用:use mysql;
UPDATE user SET Password=PASSWORD('123456') where USER='root';
flush privileges;
在mysql命令列中執行
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('123456XXX');
GRANT ALL PRIVILEGES ON *.* TO 'root' @'%' IDENTIFIED BY '123456XXX' WITH GRANT OPTION;
flush privileges;若以上方法行不通則用:use mysql;
UPDATE user SET Password=PASSWORD('123456') where USER='root';
flush privileges;