mysql_query() expects parameter 2 to be resource error in connection with remote mysql DB
<p>My PHP code works well in connecting remote windows system mysql database and returns the output. But, when I'm using the same to connect remote linux system's mysql database, I got the following error:</p>

<blockquote>
  <p>"mysql_query() expects parameter 2 to be resource, boolean given in
  C:\wamp\www\mysqldb.php on line 88"</p>
  
  <p>That line 88 have the following content   "$this->resultQur =
  mysql_query($query, $this->connID);"</p>
</blockquote>

<p>Help me to solve this.</p>

<p>yes. The resource is null in this case. But the same works in windows mysql connection. I got the error only in linux. Need to do any change for linux environment?</p>

<p>While putting "print mysql_error();" i got the following error</p>

<p>"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."</p>
