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.

Link to comment
Share on other sites

Yes I did. I setup a database on Godaddy. Godaddy uses the name of the database as the username as well.  When this site was on Yahoo, my username was different from my database name.  My password and everything is correct.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.