登录到mysql后
grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;//password是对应的root密码
flush privileges;
登录到mysql后
grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;//password是对应的root密码
flush privileges;
转载于:https://www.cnblogs.com/dule/p/6697820.html