当前位置:Gxlcms > 数据库问题 > (转载)mysql:设置mysql的远程访问

(转载)mysql:设置mysql的远程访问

时间:2021-07-01 10:21:17 帮助过:3人阅读

1.登陆Mysql
mysql -u root -p
2.允许任何IP访问,其中密码为admin
grant all privileges on *.* to root@"%" identified by "admin" with grant option;
3.允许特定IP访问,其中密码为admin
grant all privileges on *.* to root@"192.168.0.1" identified by "passw0rd" with grant option; flush privileges;

(转载)mysql:设置mysql的远程访问

标签:设置   flush   登陆   grant   mysq   sql   远程   admin   option   

人气教程排行