1、给root用户授予所有权限 MysqL> grant all privileges on *.* to root@"%" identified by "密码"; 2、刷新 MysqL> flush privileges;