Title: [Plugin: WP Super Cache] Database error
Last modified: August 19, 2016

---

# [Plugin: WP Super Cache] Database error

 *  [henkmsncam](https://wordpress.org/support/users/henkmsncam/)
 * (@henkmsncam)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-database-error/)
 * Hi,
 * I was using supercache before and it worked very well. Since today I moved to
   a new server and cache does not work anymore.
    When I add the line define(‘WP_CACHE’,
   true); in my wp-config I instantly get a “Can not connect to database error”.
   I have no idea where it comes from? The only thing changed on this server is 
   Xcache instead of Eaccelarator. Any ideas where to start?

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

 *  Thread Starter [henkmsncam](https://wordpress.org/support/users/henkmsncam/)
 * (@henkmsncam)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-database-error/#post-802991)
 * The error message is: Error establishing a database connection
 * When I add the line define(‘WP_CACHE’, true); and set the plugin to OFF it also
   works. Half and On is giving the errors.
 *  [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * (@donncha)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-database-error/#post-803078)
 * Make sure MySQL is set up correctly on your new host. The supercache plugin wouldn’t
   cause this problem.

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

The topic ‘[Plugin: WP Super Cache] Database error’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [Donncha O Caoimh (a11n)](https://wordpress.org/support/users/donncha/)
 * Last activity: [17 years, 11 months ago](https://wordpress.org/support/topic/plugin-wp-super-cache-database-error/#post-803078)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
