Title: Other Database Abstraction Class
Last modified: August 19, 2016

---

# Other Database Abstraction Class

 *  [Bruno Augusto](https://wordpress.org/support/users/imaggens/)
 * (@imaggens)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/other-database-abstraction-class/)
 * Hi guys,
 * I would like to know if there is a way to use another Database Abstraction Class
   instead the adapted version of ezSQL (in $wpdb).
 * I’m developing a very powerfull theme with a lot of unique resources. The layout
   is almost done, but now, I want to integrate with database.
 * At the first sight, get_option() (and family) sounds good. But when I started
   the Advertisement module, a new table was required.
 * I know, I can use the WPDB Class to do that, but I never use then (at least, 
   without the the get, set, delete WordPress functions) and I’m not fully familiarized.
 * So, I decided to implement the Zend_Db system, from Zend Framework.
 * It’s working perfectly. But I’m receiving “Too many connections” errors from 
   PDO::MySQL just because the Theme, inside WP-Admin, already have a MySQL connection.
 * Currently, I’m create a “fix” to hide this error,but it’s not the best practice,
   because the system is slower than normal.
 * I need help to:
 * – Close the WPDB connection OR
    – “Stop” by a moment this connection (with __construct()’
   s and __destruct()’s) OR – Another way to use without this error.
 * Opening the wp-db.php file, in the Class description there is a possible solution,
   creating a db.php file in wp-content. But it’s not working.
 * Opening several files after, I discovered if this db.php file exist, it will 
   included instead wp-db.php.
 * But, at least until now, it’s not true.
 * Weel, that is it.

The topic ‘Other Database Abstraction Class’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [Bruno Augusto](https://wordpress.org/support/users/imaggens/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/other-database-abstraction-class/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
