创建用户 CREATE USER '用户名'@'%' IDENTIFIED BY '密码123'; 指定数据库 grant all privileges on 数据库名.* to '用户名'@'%'; privileges 是权限的意思,all 就表示全部权限