//添加权限(用于远程连接数据库)
grant all privileges on *.* to 'root'@'%' identified by '你的数据库密码' with grant option;
//刷新数据库权限涉及的表
flush privileges;
//添加权限(用于远程连接数据库)
grant all privileges on *.* to 'root'@'%' identified by '你的数据库密码' with grant option;
//刷新数据库权限涉及的表
flush privileges;