解決“在連線linux遠端伺服器上的mysql資料庫時,報“Access denied for user 'root'@'ip地址'”問題”
阿新 • • 發佈:2018-12-30
在連線linux遠端伺服器上的mysql資料庫時,報“Access denied for user 'root'@'ip地址'”問題:
1.mysql -u -root -p 輸入密碼
2.mysql>grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
3.mysql>flush privileges;
4.exit; 退出mysql
5.service mysqld restart 重啟mysqld