use mysql; (加载数据库) grant all privileges on *.* to root@'%' identified by '你的密码'; (修改登录主机 % 为任意主机) flush privileges; (刷新权限)