Skip to:
Content
Pages
Categories
Search
Top
Bottom

Buddypress + HyperDB


  • Victor
    Participant

    @virre131

    I’m trying to get HyperDB to work width Buddypress.

    I’m trying to move bp_activity, bp_activity_meta, bp_notifications, notifications_meta, xprofile_data, xprofile_fields, bp_xprofile_groups, bp_xprofile_meta into there own ‘Buddypress’ database. But it does not work.

    I’m getting this error: Undefined variable: server

    Here is my current config:

    $wpdb->add_database(array(
        'host'     => DB_HOST,
        'user'     => DB_USER,
        'password' => DB_PASSWORD,
        'name'     => 'DATABASE-NAME',
        'write'    => 1,
        'dataset'  => 'bpress',
    ));
     else if(preg_match("/bp_activity/", $wpdb->table)){
        return 'bpress';
    }

    Witch preg_match should I use?

    Anyone that is using HyperDB with Byddypress?

  • You must be logged in to reply to this topic.
Skip to toolbar