一,添加一个用户
CREATE USER 'alex'@'%' IDENTIFIED BY 'gamePXWY1125abc';
alex:账号名
%: host
gamePXWY1125abc: 密码
二,创建一个数据库
CREATE database game;
三,权限
GRANT SELECT, INSERT, UPDATE, REFERENCES, DELETE, INDEX, TRIGGER, EXECUTE ON `game`.* TO 'alex'@'%';
将 数据库game下的所有表的权限
Select, Insert, Update, References, Delete, Index, Trigger, Execute
赋给用户 alex