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.
Is there anybody tell me what the prob is?
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?
Comment