改表法:
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;
2022-07-11 07:15:51
改表法:
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;