所以,我对客户端的php脚本有一个非常混乱的问题。 问题基本上是MySQLi连接到另一台服务器,不是我在代码中指定的服务器。 这是我的代码:
<?php
$list = ['0','137.74.186.210', '137.74.186.211', '137.74.186.212'];
foreach ($list as $value) {
if ($value == '0') {
continue;
}
echo "<br><h2><strong>Connecting to {$value}</strong></h2><br>";
$mysqli_connection = new MySQLi($value,"root","PASSWORD","LHskywars");
if ($mysqli_connection->connect_error) {echo "Not connected, error: " . $mysqli_connection->connect_error;}else{echo "Connected.";}
}
?>
答案 0 :(得分:0)
服务器1(&#34; 137.74.186.211&#34;)不允许访问服务器2(&#34; 137.74.186.212&#34;)。
-.-