同学,你这个没问题,就是以下三步:
//创建用户
CREATE USER 'mmall'@'%' identified by 'mmall';
#CREATE USER '用户名'@'%' identified by '密码';
//赋予权限
grant all privileges on mmall.* to 'mmall'@'%' identified by 'mmall';
#grant all privileges on 数据库名.表名 to '用户名'@'%' identified by '密码';
//强制生效
flush privileges;