开启远程连接权限
use mysql;
select user,host from user;
update user set host=’%’ where user=’root’;
flush privileges;
select user,host from user;
关闭远程连接权限
use mysql;
select user,host from user;
update user set host=’localhost’ where user=’root’;
flush privileges;
select user,host from user;
转载请注明:王杭州的个人网页 » MySQL 远程连接[zz]