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