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);
连接到我的数据库时遇到问题。我认为有一个我不知道的设置,需要改变。void main(String[] args) try Connection con = DriverManager.getConnection("jdbc:mysql它会导致这个错误:
com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connectionCaused by: com.mysq