I am quite new to PHP and MySQl and making my progress. I have installed a MySQL server on my PC and wrote the PHP scripts for storing and retrieving the data from my MySQL Server. Everything works fine on my localhost [PC].
For the information I have used mysqli_connect(); to connect to my localhost MySQL Server.
Now my question is how can I connect to the ‘000webhost.com’ MySQL Server, I used the same username = ‘au2951***’ and password = ‘*******’ which has been sent during the registration and the host name = ‘mysql8.000webhost.com’.
Like: mysql_connect(‘mysql8.000webhost.com’,‘au2951***’, ‘*****’);
But I am getting the error as shown below:
" Warning: mysql_connect() [function.mysql-connect]: Access denied for user ‘au2951***’@‘220.127.116.11’ (using password: YES) in /home/au2951***/public_html/mailinglist/php/addemail.php on line 15 "
It would be really helpful if any one have an idea of where I am going wrong.