title: How to Resolve "Error Establishing a Database Connection" on WordPress XAMPP Localhost for Google App Engine
body: <p>Following Google App Engine's <a href="https://developers.google.com/appengine/articles/wordpress?hl=nl" rel="nofollow">instructions</a> for creating a local WordPress development platform, I created the database and initial user using the instruction's MySQL direction:</p>
  
  <pre><code>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';
  </code></pre>
  
  <p>After running it without errors reported, MySQL subsequently reported back:</p>
  
  <pre><code>CREATE DATABASE IF NOT EXISTS wordpress_db;# 1 row affected.
  
  CREATE USER 'wp_user'@'localhost' IDENTIFIED BY 'wp_password';# MySQL returned an empty result set (i.e. zero rows).
  
  GRANT ALL PRIVILEGES ON wordpress_db.* TO 'wp_user'@'localhost';# MySQL returned an empty result set (i.e. zero rows).
  </code></pre>
  
  <p>While the command line runs dev_appserver.py, I try reaching the WordPress app and get instead:</p>
  
  <blockquote>
    <p>Error establishing a database connection</p>
  </blockquote>
  
  <p>I've removed and recreated the database (wordpress_db) and user (wp_user) without reaching the WP app.</p>
  
  <p>Any suggestion how to resolve this is appreciated.</p>
  
  <p>Thanks, this is my App Engine log:</p>
  
  <blockquote>
    <p>2013-11-26 17:40:25 Running command: "['C:\Program Files\Python27\python.exe', u'C:\Program Files\Google\google_appengine\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8000', u'C:\Documents and Settings\User\My Documents\Catalyx\Catalyx-GoogleAppEngine\Catalyx']"
    2013-11-26 17:40:26 (Process exited with code -1073741515)</p>
  </blockquote>