修改表,登录mysql数据库,切换到mysql数据库,使用sql语句查看"select host,user from user ;"
console:
>use mysql;
mysql>update user set host = '%' where user ='root';
mysql>select host, user from user;
mysql>flush privileges;
修改表,登录mysql数据库,切换到mysql数据库,使用sql语句查看"select host,user from user ;"
console:
>use mysql;
mysql>update user set host = '%' where user ='root';
mysql>select host, user from user;
mysql>flush privileges;