以下命令行示例即实现root允许任意IP访问功能:

use mysql;
update user set host = '%' where user ='root';
flush privileges;
quit

Related Posts: MySQL命令行设置用户允许任意IP访问 :

avatar