Title: Mystery Database Engine
Last modified: August 21, 2016

---

# Mystery Database Engine

 *  Resolved [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/mystery-database-engine/)
 * I decided to create a new WordPress site. I thought it would be a breeze as it’s
   my third one. I set up a database and wp-config and got the “Error establishing
   a database connection” message. When I looked into it, I found that MySQL, either
   from the command line or through Sequel Pro, didn’t show my working WordPress
   database. It did show the one I created for the new site. I could even stop the
   MySQL server and WordPress would still access my posts, setting, etc on the working
   database. If I remember correctly, I created the working database when I was 
   using the XAMPP package which contains a version of mysql. Subsequently, I installed
   a standalone version of MySQL. I no long start XAMPP so I would think there isn’t
   a second database engine running. If there were, you would think it wouldn’t 
   let me start a second one. Is there some way to find out where WordPress is looking
   for the database engine? This is on OS X Mountain Lion

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/mystery-database-engine/#post-3936477)
 * Update: this is more of standard connection issue. The database that turned out
   to be working so well was on my production image. I didn’t pay close attention
   to the url. The development version gets the same error. I suspect I deleted 
   it along with the XAMPP application. I can access a non-wordpress database using
   php with this code:
 *  $server = ‘mysql:dbname=amcolan;host=localhost:3306’;
    $this->id = ‘root’; $
   this->password = ‘somepassword’; parent::__construct($server,$this->id, $this-
   >password);
 * This wp-config.php setup doesn’t work:
 * /** MySQL database username */
    define(‘DB_USER’, ‘root’);
 * /** MySQL database password */
    define(‘DB_PASSWORD’, ‘somepassword’);
 * /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost:3306’);
 *  Thread Starter [cortes](https://wordpress.org/support/users/cortes/)
 * (@cortes)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/mystery-database-engine/#post-3936530)
 * This isn’t really a WordPress issue so I’m going to close this.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Mystery Database Engine’ is closed to new replies.

## Tags

 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 2 replies
 * 1 participant
 * Last reply from: [cortes](https://wordpress.org/support/users/cortes/)
 * Last activity: [12 years, 11 months ago](https://wordpress.org/support/topic/mystery-database-engine/#post-3936530)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
