登陆mysql,然后输入 grant all on *.* to root@'%' identified by 'root'; 然后重启mysql即可 转载于:https://www.cnblogs.com/BrianQQ/p/5897186.html