MySQL授权

mysql版本号:5.5

创建用户:create user '用户名称'@'%' identified by '密码';

授权

grant select,update,insert,delete,execute on 数据库名称.*  to '用户名称'@'%';

刷新权限:
flush privileges;

给数据库授所有权

grant all on 数据库名称.* to '用户名称'@'%';

原文地址:https://www.cnblogs.com/zxh8080/p/8442662.html