不能连接数据库服务器:Access denied for user 'mangos'@'localhost' (using password: YES) 求解决

如题所述

用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 ‘密码';
温馨提示:内容为网友见解,仅供参考
第1个回答  2012-04-07
如果密码没有错误,那就是你没有开通访问权限,要去mysql库中的user表中增加相应的权限。 可能是密码不正确. ,nzDqDT
相似回答