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