gerhardtdesign Posted December 30, 2010 Share Posted December 30, 2010 Never worked with GoDaddy before... Can't get my config script to connect to the database. Here's my code (I'm sure all the login info is correct, except maybe the host name but I copied that from GoDaddy too...) <?php ob_start(); // MySQL connection settings $db_host = "anakdesigns.db.2089823.hostedresource.com"; $db_user = "********"; $db_pass = "********"; $db_name = "********"; // Connect to the database $con = mysql_connect($db_host, $db_user, $db_pass) or die("Cannot connect to DB"); mysql_select_db($db_name) or die("Error accessing DB"); ?> http://www.anakdesigns.com/dev Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted December 30, 2010 Share Posted December 30, 2010 It would be helpful to see the error that's produced. $con = mysql_connect($db_host, $db_user, $db_pass) or die("Cannot connect to DB: " . mysql_error() ); Quote Link to comment Share on other sites More sharing options...
gerhardtdesign Posted December 30, 2010 Author Share Posted December 30, 2010 Client does not support authentication protocol requested by server; consider upgrading MySQL client Yep, I am fairly new to PHP so I am reading lots of books on it and getting better but that's one thing I'm sure I won't forget from here on out. Thanks for the help. I'll look up different methods of connecting. No need for anymore sarcasm for me! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.