我想连接 2 个不同的数据库,但我得到了那个错误:
Warning: mysqli::mysqli() [mysqli.mysqli]: (28000/1045): Access denied for user '*username*'@'localhost' (using password: YES) in......
我的代码:
$mysqli2 = new mysqli('localhost',$db_user,$db_pass, $db_name);
$mysqli2 = new mysqli('localhost',$db_user2,$db_pass2, $db_name2);
我尝试执行这样的查询:
$result=$mysqli->query("select ......
$result=$mysqli2->query("select ......
我怎样才能解决这个问题?