改表法:
x:\>mysql -u root -pvmware
mysql> use mysql;
mysql> update User set Host = ‘%’ where User = ‘root’;
mysql> select Host, User from user;
mysql> flush privileges;
改表法:
x:\>mysql -u root -pvmware
mysql> use mysql;
mysql> update User set Host = ‘%’ where User = ‘root’;
mysql> select Host, User from user;
mysql> flush privileges;