title: error to connect database, target machine actively refused it
body: <p>I'm developing an application, in which two tables of a database are connected but not the third. (This is on server. They are working fine on my local machine.)</p>
  
  <pre><code> 1. Warning: mysql_connect() [function.mysql-connect]: [2002] No
      connection could be made because the target machine actively (trying
      to connect via tcp://localhost:3306) in D:\Hosting.. on line 5
   2. Warning: mysql_connect() [function.mysql-connect]: No connection could be made because the target machine actively refused it. in D:\Hosting.. on line 5
  </code></pre>
  
  <p>At an earlier stage, I connected to the two tables from the same database successfully, so I've checked the physical location of each table of the database. No wonder all are physically resting at the same place in the database.</p>
  
  <p>Please help me to understand the problem.</p>
  
  <p><strong>EDIT :</strong></p>
  
  <pre><code>//Page1 has something like:
  $conid=mysql_connect("dxxs.db.7xx7.hostedresource.com","dxxs","Kxx3") or die();
  mysql_select_db("dxxs",$conid) or die();
  mysql_query(“some basic 4-5 queries depending on user’s interaction with table1”);
  mysql_close($conid);
  //redirection to page2 from there to page3
  $conid=mysql_connect("dxxs.db.7xx7.hostedresource.com","dxxs","Kxx3") or die();
  mysql_select_db("dxxs",$conid) or die();
  mysql_query(“some basic 4-5 queries depending on user’s interaction with table2”);
  mysql_close($conid);
  //some redirection to page4
  $conid=mysql_connect("dxxs.db.7xx7.hostedresource.com","dxxs","Kxx3") or die();
  mysql_select_db("dxxs",$conid) or die();
  mysql_query(“some basic 4-5 queries depending on user’s interaction with table3”);
  mysql_close($conid);
  </code></pre>
  
  <p>Now my problem is when connecting to table 3, the server is throwing an <em>error as 
  stated above</em></p>
  
  <p>Where in line 5, MySQL_connect is written. Please help me to understand why table 3 is not getting connected whereas table 1 &amp; table 2 are able to connect. All are resting at the same database on the server. </p>