Jump to content

Database Can't Connect


monyo07

Recommended Posts

I recently installed Wordpress and when I am on the install page I put all the required information and I still get error:

 

Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?

 

I have checked my databases. I am very sure that my user is in the database with all the permissions.

 

Maybe localhost is causing the problem?

 

TIA

 

edit: username: nui117

Link to comment
Share on other sites

I recently installed Wordpress and when I am on the install page I put all the required information and I still get error:

 

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.

Are you sure you have the correct username and password?

Are you sure that you have typed the correct hostname?

Are you sure that the database server is running?

 

I have checked my databases. I am very sure that my user is in the database with all the permissions.

 

Maybe localhost is causing the problem?

 

TIA.

 

All my addon domains are working.

 

username: nui117

Link to comment
Share on other sites

Stevie's database server was down around the time of your post. Try again.

 

Also, to eliminate the user issues, try using your cpanel username and password (you can change to another user for security once you get it to work). Localhost is correct, so don't change that. Database name should be in the form 'nui177_dbname'.

Link to comment
Share on other sites

Thanks for the reply.

 

Yes, I know the form as I have built several sites and demos using cpanel in my life. I totally checked all of it, the name, username, password, and if it's in the database already (the username).

 

I tried it just now, tried with the old, created new database and username, tried it... still comes up with the error.

Link to comment
Share on other sites

  • 1 month later...

Same problem:

 

$db_host = "localhost";

$db_username = "omnissia_NAME";

$db_pass = "PASS";

$db_name = "omnissia_DBNAME";

 

mysql_connect ($db_host, $db_username, $db_pass)

or die ("could not connect to mySQL");

 

mysql_select_db($db_name) or die ("No database!");

_____

All the time result: No database!

Account: omnissia

 

___

 

Fixed, created database through Wizard with new account, and only this accoun can work with DB.

Edited by docupie
Link to comment
Share on other sites

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.   Paste as plain text instead

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