mysql> select host,user,password from user;
mysql> use mysql; Database changed mysql> grant all privileges on *.* to root@'%' identified by "root"; Query OK, 0 rows affected (0.00 sec) mysql> flush privileges; Query OK, 0 rows affected (0.00 sec) mysql> select host,user,password from user;
最后远程能用root\root登陆了,可是本地只能用空密码登陆了,权限也不同。留个TO-DO。html