monyo07 Posted September 25, 2014 Posted September 25, 2014 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
monyo07 Posted September 25, 2014 Author Posted September 25, 2014 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 connectionThis 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
wolstech Posted September 25, 2014 Posted September 25, 2014 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'.
monyo07 Posted September 25, 2014 Author Posted September 25, 2014 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.
wolstech Posted September 25, 2014 Posted September 25, 2014 I not sure what else could be wrong...maybe an admin will know. Moved to customer service.
docupie Posted October 30, 2014 Posted October 30, 2014 (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 October 30, 2014 by docupie
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now