登陆到mysql后mysql
grant all privileges on *.* to 'root'@'%' identified by 'password' with grant option;//password是对应的root密码sql
flush privileges;ide