/////////////////////////////////////////
Mysql开启远程授权步骤 mysql -uroot -p123456;登录数据库
use mysql;切换到mysql数据库
delete from user where user='';//删除匿名用户
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;//用户授权
重启mysql服务
Mysql开启远程授权步骤 mysql -uroot -p123456;登录数据库
use mysql;切换到mysql数据库
delete from user where user='';//删除匿名用户
grant all privileges on *.* to 'root'@'%' identified by '123456' with grant option;//用户授权
重启mysql服务