function mysql_read_single_row($sql, $array_of_values) {
//create a connection$DBH = new PDO("mysql:host=".CONST_MYSQL_HOST.";dbname=".CONST_MYSQL_DBNAME, CONST_MYSQL_RUSER, CONST_MYSQL_RPASS);
我遇到一个问题,在尝试使用MySQL数据库连接到网站时,单个用户间歇性地收到以下错误:
Warning: mysql_pconnect() [function.mysql-pconnect]: Can'tconnect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) in /home/wind/