mysql创建用户

CREATE USER '用户名'@'%' IDENTIFIED BY '密码';

授权

grant all privileges on 数据库名.* to '用户名'@'%' identified by '密码';