mysql 新增用户并授权 grant all privileges on *.* to 'root'@‘%’ identified by '123456'; *.* 表示所有资源。 刷新权限 flush privileges;