以Linux为例: 1234567$ mysql -u root -pEnter password:{password}mysql>use mysql;mysql>update user set host='%' where user='root';mysql>flush privileges;mysql>quit