Connection problem using $link = mysql_connect

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • librakib
    New Member
    • May 2010
    • 1

    Connection problem using $link = mysql_connect

    I want to host a web site using PHP-Mysql.

    It run in local computer using wamp server. but when i try to host it in my web server it did not run properly. it shows the following error.

    "Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'test'@'72.52.1 86.53' (using password: YES) in /home/infinity/public_html/test/connection.php on line 2
    Could not connect: Access denied for user 'test'@'72.52.1 86.53' (using password: YES)"

    I use a php file named connection.php contain the following code.

    Code:
     <?php
    	$link = mysql_connect('infinitymcict.com','test','test')
    		or die('Could not connect: ' . mysql_error());
    	mysql_select_db('niit') or die('Could not select database');	
    	
    	echo "Connected to Database..";
    ?>

    Is there anybody tell me what the prob is?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Follow this trouble shooting article.

    Comment

    Working...