mysql新建用户与授权

grant all privileges on 库名.表名 to '用户名'@'IP地址' identified by '密码' with grant option;
flush privileges;
原文地址:https://www.cnblogs.com/liyuchuan/p/11424996.html