#1 鬼剑士
数据库链接错误 : Access denied for user 'cvtcolo_admin'@'localhost' (using password: YES)- /home/cvtcolo/www/hkcolo/SpeedPHP/Drivers/mysql.php on line 92
* @param dbConfig 数据库配置
88.
*/
89.
public function __construct($dbConfig)
90.
{
91. $linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
92. $this->conn = $linkfunction($dbConfig['host'].":".$dbConfig['port'], $dbConfig['login'], $dbConfig['password']) or spError("数据库链接错误 : " . mysql_error());
93. mysql_select_db($dbConfig['database'], $this->conn) or spError("无法找到数据库,请确认数据库名称正确!");
94. $this->exec("SET NAMES UTF8");
95.
}
96.
97.
* 对特殊字符进行过滤
2011-12-27 09:47:03