1. 程式人生 > >無法遠端連線Linux mysql

無法遠端連線Linux mysql

 

登入mysql

 mysql -u root -p mysql


 

設定root使用者遠端連線的密碼為123456

 grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;

 

之後再用123456 密碼遠端登入即可


原文:https://blog.csdn.net/qq_38006520/article/details/82882755