给mysql的root用户

grant all privileges on *.* to 'root'@'%' identified by 'root' with grant option;
原文地址:https://www.cnblogs.com/boshen-hzb/p/6137669.html