Jump to content

Cannot connect to database thru my admin_common.php file.


KDM

Recommended Posts

Here is my code in admin_common.php.  This is a website I had over at yahoo that I moved to Godaddy.

 

 

define("EZSQL_DB_USER", "larryadmin");			// <-- mysql db user
define("EZSQL_DB_PASSWORD", "mypassword");		// <-- mysql db password
define("EZSQL_DB_NAME", "larryadmin");		// <-- mysql db pname
define("EZSQL_DB_HOST", "mysql");	// <-- mysql server host

 

 

I keep getting this error

 

 

SQL/DB Error -- [
Error establishing a database connection!
Are you sure you have the correct user/password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?
]
SQL/DB Error -- [
Error selecting database larryadmin!
Are you sure it exists?
Are you sure there is a valid database connection?
]

 

Please help thanks.

I'm going to guess that mysql is not your database server's host name (that's an incomplete host name at a minimum.)

 

Perhaps if you referred to your new web host's documentation - http://community.godaddy.com/help/article/39

I'm going to guess that mysql is not your database server's host name (that's an incomplete host name at a minimum.)

 

Perhaps if you referred to your new web host's documentation - http://community.godaddy.com/help/article/39

 

Your guess was right! Thanks!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.