无法远程连接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 

猜你喜欢

转载自blog.csdn.net/weixin_42655593/article/details/84836425