如何远程链接linux服务器的mysql

 insert into mysql.user (User,Password,Host) values ('user',password(123456),'%');

%为user用户登陆时不限制ip

修改配置mysql配置文件(每个系统配置文件的路径有所不同),搜索bind,默认是bind address 127.0.0.1,把这段临时注释掉,然后flush privileges刷新权限,重启Mysql服务即可。

猜你喜欢

转载自blog.csdn.net/yt_php/article/details/80800231