# 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;