# use mysql; # select user,host,Password from user where user='root'; # delete from user where user='root' and host='%';
grant all privileges on *.* to 授予外网登录的用户名@'%' identified by '密码' WITH GRANT OPTION;
mysql
# grant all privileges on *.* to root@'%' identified by 'root' WITH GRANT OPTION; # flush privileges;