用root用户登录mysql,然后给mangos用户授权:
--给mangos用户在所有数据库都有以下权限:
grant select,insert,update,delete on *.* to mangos@localhost Identified by ‘密码';
--或
--给mangos用户在某数据库下有权限:
grant select,insert,update,delete on 数据库名.* to mangos@localhost Identified by ‘密码';
--或
--给mangos用户近似于超级用户的权限:
grant all privilegs on *.* to mangos@localhost Identified by ‘密码';
温馨提示:内容为网友见解,仅供参考