Title: [Plugin:HypeDB]Call to undefined method stdClass::add_database()
Last modified: August 19, 2016

---

# [Plugin:HypeDB]Call to undefined method stdClass::add_database()

 *  [ebloge](https://wordpress.org/support/users/ebloge/)
 * (@ebloge)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/pluginhypedbcall-to-undefined-method-stdclassadd_database/)
 * Fatal error: Call to undefined method stdClass::add_database() in D:\php\htdocs\
   wordpress\db-config.php on line 218
 * i add code in wp-config.php
 * _[Code moderated as per the [Forum Rules](http://codex.wordpress.org/Forum_Welcome).
   Please use the [pastebin](http://wordpress.pastebin.com)]_

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

 *  Thread Starter [ebloge](https://wordpress.org/support/users/ebloge/)
 * (@ebloge)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/pluginhypedbcall-to-undefined-method-stdclassadd_database/#post-1863373)
 * i add code in wp-config.php
 *     ```
       define ('DB_CONFIG_FILE','');
       require_once(ABSPATH . 'db-config.php');
       ```
   
 *     ```
       /** Sample Configuration 2: Partitioning **/
   
       /**
        * This example shows a setup where the multisite blog tables have been
        * separated from the global dataset.
        */
   
       $wpdb->add_database(array(
       	'host'     => 'localhost',
       	'user'     => 'root',
       	'password' => '123456',
       	'name'     => 'test01',
       ));
       $wpdb->add_database(array(
       	'host'     => 'localhost',
       	'user'     => 'root',
       	'password' => '123456',
       	'name'     => 'test02',
       	'dataset'  => 'blog',
       ));
       ```
   
 *  Thread Starter [ebloge](https://wordpress.org/support/users/ebloge/)
 * (@ebloge)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/pluginhypedbcall-to-undefined-method-stdclassadd_database/#post-1863501)
 * anybody,help me,thanks
 *  [ewendland](https://wordpress.org/support/users/ewendland/)
 * (@ewendland)
 * [15 years, 4 months ago](https://wordpress.org/support/topic/pluginhypedbcall-to-undefined-method-stdclassadd_database/#post-1863619)
 * Why did you add code to wp-config.php? If you follow the instructions here:
    
   [http://wordpress.org/extend/plugins/hyperdb/installation/](http://wordpress.org/extend/plugins/hyperdb/installation/)
   you shouldn’t have any problems.
 * hth

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

The topic ‘[Plugin:HypeDB]Call to undefined method stdClass::add_database()’ is 
closed to new replies.

## Tags

 * [multi database](https://wordpress.org/support/topic-tag/multi-database/)

 * 3 replies
 * 2 participants
 * Last reply from: [ewendland](https://wordpress.org/support/users/ewendland/)
 * Last activity: [15 years, 4 months ago](https://wordpress.org/support/topic/pluginhypedbcall-to-undefined-method-stdclassadd_database/#post-1863619)
 * Status: not a support question

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
