I have made dozens of installations of WordPress on my FreeBSD server with no problems until now. I set up the database from the command line:
mysql> CREATE DATABASE quake DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci; mysql> GRANT ALL PRIVILEGES ON quake.* TO quakeuser@localhost IDENTIFIED BY '******';
And I enter the parameters into the wp-config.php:
define('DB_NAME', 'quake'); define('DB_USER', 'quakeuser'); define('DB_PASSWORD', '********'); define('DB_HOST', 'localhost'); define('DB_CHARSET', 'utf8'); define('DB_COLLATE', 'utf8_unicode_ci');
I run the readme.html and go to wp-admin/install.php
I enter the site name, admin username and password. Checking with phpmyadmin I see that 11 tables are created.
When I click [Login] I get the dreaded message:
“Error establishing database connection”
(where does this come from by the way?)
How can this be since install.php already accessed the database in order to create the initial tables. I thought it might be a bug so I checked out the latest trunk from svn but got the same error. I’m utterly flummoxed!
As I say, I’ve done dozens of installs and this is the first that’s tripped me up. Any ideas?
- The topic ‘Error establishing database connection’ is closed to new replies.