Error establishing a database connection
-
I know this topic has come up a bazillion times but I’m quite ready to pull my hair out after trying every recommended fix I can find.
I’m using MAMP, BlueHost and Chrome. I’ve downloaded WP 3.8 and put in MAMP–>htdocs–>wordpress. I created a database called “wordpress’ in phpMyAdmin in MAMP. I gave it all access and do not have a password on it (that I am aware of).
Running https://localhost:8888/wordpress/ I am able to login and get the lovely HELLO WORLD! post / dashboard.
Trying to go access https://elizabethshell.com/wp-admin/install.php results in the Error establishing a database connection. What am I doing wrong? Full config.php file is below, minus the password and config keys. As to the error screen’s questions:
Are you sure you have the correct username and password? — Yes. I have also reset the password via the priveledges tab under PHPMyAdmin in MAMP. I used the generated password to update wp-config.php and re-ftp’ed it. No change in error message after refreshing the page. It also destroyed my localhost access so I changed it back to ‘root.’
Are you sure that you have typed the correct hostname? Yes. I am using BlueHost and triple-confirmed the hostname is localhost.
Are you sure that the database server is running? Yes. My original index.html page is still up and running.
I also tried doing the WP install via BlueHost, but received an error page saying they couldn’t go further with a giant broken image that should have been a screenshot of the problem.
wp-config.php
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘wordpress’);/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘password-generated-from-phpMyAdmin’);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);/** Database Charset to use in creating database tables. */
define(‘DB_CHARSET’, ‘utf8’);/** The Database Collate type. Don’t change this if in doubt. */
define(‘DB_COLLATE’, ”);
- The topic ‘Error establishing a database connection’ is closed to new replies.