Support » Developing with WordPress » HyperDB and Buddypress (Partitioning of Data)

  • I have my install of WP spread into multiple databases using HyperDB. Now I want to install BuddyPress in its own database. And using the same config as I’ve used before did not work.

    // BuddyPress
        'host'     => DB_HOST,
        'user'     => DB_USER,
        'password' => DB_PASSWORD,
        'name'     => 'buddypress',
        'write'    => 1,
        'dataset'  => 'buddypress',
    else if(preg_match("/{$wpdb->base_prefix}bp_activity/",       $wpdb->table) ||
                preg_match("/{$wpdb->base_prefix}bp_notifications/",  $wpdb->table) ||
                preg_match("/{$wpdb->base_prefix}bp_xprofile/",       $wpdb->table)
            return 'buddypress';

    When running this config I get some of these Undefined Variables.

    Notice: Undefined index: buddypress__r
    Notice: Undefined index: buddypress__w

    What preg_match should I use to have all Buddypress related tables in a “Buddypress” database?

    • This topic was modified 3 years, 8 months ago by Victor.
  • The topic ‘HyperDB and Buddypress (Partitioning of Data)’ is closed to new replies.