다음 MySQL 데이터베이스에 연결할 수있는 PHP 코드가 있습니다.PHP MySql 연결 오류
mysql_connect("myserver.com" , "root", "redhat","datastore") or die(mysql_error());
나는 오류를 가지고이 코드는 말을 실행했을 때 :
Warning: mysql_connect(): Host '10.21.21.10' is not allowed to connect to this MySQL server in C:\xampp\htdocs\inventory\net.php on line 20
Host '10.21.21.10' is not allowed to connect to this MySQL server
하지만 명령에 핑 myserver.com을했을 때 메시지를 표시 myserver.com의 IP 그것이 10.25.15.95
했다mysql_connect("10.21.21.10" , "root", "redhat","datastore") or die(mysql_error());
샘 :
는, 그래서에 코드를 수정 반복되는 오류.
그럼 난 내 코드를 변경 :mysql_connect("10.25.15.95" , "root", "redhat","datastore") or die(mysql_error());
오류였다
Warning: mysql_connect(): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\xampp\htdocs\inventory\net.php on line 20
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
이 문제를 해결 도와주세요 .. 사전에
감사합니다 ...
원격 서버에서 사용자의 IP 연결을 허용하지 않습니다. 호스팅 제공 업체에 문의하십시오. –