Quantcast
Channel: Topic Tag: database | WordPress.org
Viewing all articles
Browse latest Browse all 11077

LyleChamney on "Error establishing a database connection"

$
0
0

What local server are you using and which operating system?

e.g. MAMP and Mac OS? Windows and XAMPP?

Going by what you have tried for the DB port (8889), I am going to 'guess' you are using MAMP on a Mac, as that is it's default DB port. If this is in fact the case, this is what you need in wp-config.php, using the default MAMP values:

DB name: whatever you named it (no spaces)

DB user: root <the default MAMP DB USER name>

DB password: root <the default MAMP DB USER pwd>

DB hostname: localhost or 127.0.0.1

Also, if you are on a Mac and you used TextEdit to edit the config file, be careful that it didn't change the single quotes, as can happen if the settings are such. That is why it is always advisable to use a plain text editor such as Text Wrangler to do these edits.


Viewing all articles
Browse latest Browse all 11077

Trending Articles