mysql授权

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