How do I access a MySQL database from a different Bluehost account.
BH account with database is wjcastorconsulting.net, I am attempting to access the database from talkingbooksplus.com. I have setup the remote MySQL access host to permit %.talkingbookplus.com
Using the following PHP code:
$hostname_connection = "www.wjcastorconsulting.net";
$database_connection = "wjcastor_ComeHearBooks";
$username_connection = "xxxxx";
$password_connection = "xxxxxxxx";
$connection = mysql_connect($hostname_connection, $username_connection, $password_connection) or trigger_error(mysql_error(),E_USER_ERROR);
I get the following error:
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'xxxxx'@'box175.bluehost.com' (using password: YES) in ...
Any ideas on what I am doing wrong?
Thanks for the help in advance.
Bill


Reply With Quote
