Host unlimited blogs, sites, forums for $4.95 only with this host

Bluehost : MySQL Bluehost Database connection

Bluehost is among our best web hosts. Sign up with bluehost here

This is a bluehost question posted by wjc54 on 27 October 2008

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?

You can read more about bluehost in detail or sign up now with bluehost web hosting

This entry was posted in Bluehost Host Bookmark this post and come back later for the best web hosting coupons.

This web hosting blog is proudly hosted with reliable Hostgator webhosting for only one cents through this hostgator coupon. If you're new here, you may want to subscribe to this web hosting RSS feed

-->