外部ネットワークから接続できるようにするために、このコードをいじっています。
以下のコードは、同じネットワーク内にいる場合にのみ完全に機能します。
<?php
define ('DB_USER', 'test_user');
define ('DB_PASSWORD', 'test_password');
define ('DB_HOST', '192.168.x.xxx:3306');
define ('DB_NAME', 'testing');
$dbc=mysql_connect(DB_HOST, DB_USER, DB_PASSWORD)
OR die ('Could not connect to MySQL: '.mysql_error()); @mysql_select_db (DB_NAME)
OR die ('Could not select the database" '.mysql_error());;
?>
これで、ルーター設定 79.xxx.xxx.xx に IP アドレスが見つかりましたが、192.168.x.xxx IP を置き換えようとすると、次のエラーが表示されます。
Could not connect to MySQL: No connection could be made because the target machine actively refused it.
私はすでにphpmyadmin confファイルを編集しており、以下を置き換えていることに注意してください:
<Directory "c:/wamp/apps/phpmyadmin3.5.1/">
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Allow,Deny
Allow from all
</Directory>
それを機能させるにはどうすればよいですか?助けてくださいありがとう