mysql> create user 'root'@'%' identified by '密码';Query OK, 0 rows affected (2.35 sec) mysql> grant all privileges on *.* to 'root'@'%';Query OK, 0 rows affected (0.06 sec) mysql> flush privileges;Query OK, 0 rows affected (0.06 sec)