MySQL Bluehost Database connection
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.
I believe that a BlueHost admin needs to adjust the firewall to allow external access from a specific IP address. Contact support and ask for this to be done.
Originally Posted by wjc54
If you don't have a fixed IP address at the remote location, I'm not sure that this can be done.
Thanks I will contact them and see what is required.
Originally Posted by dkinzer