mysql -u root -p (mysql登入密碼)
use mysql
update user set host =’%'where user =‘root’ and host =‘localhost’;
flush privileges;

mysql -u root -p (mysql登入密碼)
use mysql
update user set host =’%'where user =‘root’ and host =‘localhost’;
flush privileges;