Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

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.

  • 1 month later...
Posted (edited)

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...