WordPress.org

Support

Support » Plugins and Hacks » [Plugin:HypeDB]Call to undefined method stdClass::add_database()

[Plugin:HypeDB]Call to undefined method stdClass::add_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. Please use the pastebin]

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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',
    ));

    anybody,help me,thanks

    Why did you add code to wp-config.php? If you follow the instructions here:
    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.
Skip to toolbar