数据库链接错误/无法找到数据库

#1 kao10324

不使用框架直接连接查询正常:$con = mysql_connect("localhost","xxxxx","xxxxx");使用框架的出现下面错误:数据库链接错误/无法找到数据库 : Access denied for user 'xxxxx'@'localhost' (using password: YES)

在本地正常.同服务器上其它用些框架的网站也正常.就这个网站不成

2016-09-25 12:36:49

#2 jake

就提示看Access denied for user 'xxxxx'@'localhost' (using password: YES),意思是

该mysql用户没有访问这个库的权限。

如果对这个提示有疑惑,可以百度或者google。

2016-09-25 18:25:02