当尝试在本地连接到mysql数据库时,获取下一个错误
define("SHOW_SQL_ERROR", true);
define("DB_SERVER", "127.0.0.1");
define("DB_DATABASE", "market");
define("DB_USER", "root");
define("DB_PASS", "root");
mysqli_connect (DB_SERVER, DB_USER, DB_PASS) OR mysql_error().
//mysqli_connect (DB_SERVER, DB_USER, DB_PASS) OR die ("Could not connect database!");
mysqli_select_db (DB_DATABASE) OR die ("Could not select the database: " . mysql_error() );
警告:mysqli_connect():( HY000 / 2002):第11行拒绝连接警告:mysqli_select_db()预计正好有2个参数,第13行中给出1 - 无法选择数据库:
我做错了什么?