“Error Establishing a Database Connection” on WordPress XAMPP Localhost for GAE
-
I’ve been trying to launch WP after installing it locally on an XAMPP stack to prepare for a Google App Engine (GAE) server.
Under WP_debug mode, I get the following reported when I visit “localhost:8080”:
Warning: mysql_connect(): Access denied for user ‘**wp_user**’@’localhost’ (using password: YES) in C:\Documents and Settings\User\My Documents\Catallactic\Catallactic-GoogleAppEngine\catallactic\wordpress\wp-includes\wp-db.php on line 1142
Error establishing a database connection
The GAE instructions are pretty clear advising creating the WP database, user and privileges with this SQL script:
CREATE DATABASE IF NOT EXISTS wordpress_db;
CREATE USER ‘wp_user’@’localhost’ IDENTIFIED BY ‘wp_password’;
GRANT ALL PRIVILEGES ON wordpress_db.* TO ‘wp_user’@’localhost’;and the applicable wp_config parameters:
/** The name of the database for WordPress */
define(‘DB_NAME’, ‘**wordpress_db**’);/** MySQL database username */
define(‘DB_USER’, ‘**wp_user**’);/** MySQL database password */
define(‘DB_PASSWORD’, ‘**wp_password**’);Following these instructions, I still get the “Error establishing a database connection”, which is perplexing because this is not the first WP local development I’ve set up (which could be the problem?).
I’ve deleted and created the user and database a few times without success.
Any suggestions would be appreciated.
Thanks.
- The topic ‘“Error Establishing a Database Connection” on WordPress XAMPP Localhost for GAE’ is closed to new replies.