mysql> use mysql;
Database changed
mysql> grant all privileges on *.* to root@'%' identified by "password";
Query OK, 0 rows affected (0.00 sec)
mysql> flush privileges;
mysql> use mysql;Database changedmysql> grant all privileges on *.* to root@'%' identified by "password";Query OK, 0 rows affected (0.00 sec)mysql> flush privileges;注意 分配好权限后刷新权限...