给具体访问的用户赋权 grant all privileges on . TO ‘root’@’%’ identified by ‘root的密码’ WITH GRANT OPTION; 使新赋予的权限生效 FLUSH PRIVILEGES;