Multi-DB: db-config.php

Hi,

I've set the db-config.php file with the instructions. It says to change only lines 10, 16 and 25. My doubt is in the line 25.

I set:
add_global_table('liquidas_banco_global');

But there are many lines below that:

add_global_table('affiliatereferrers');
add_global_table('am_actions');
add_global_table('am_queue');
add_global_table('am_schedule');
add_global_table('autoblog');

add_global_table('bp_activity');
add_global_table('bp_activity_meta');
add_global_table('bp_friends');
add_global_table('bp_groups');
add_global_table('bp_groups_groupmeta');
add_global_table('bp_groups_members');
add_global_table('bp_messages_messages');
add_global_table('bp_messages_notices');

add_global_table('bp_messages_recipients');
add_global_table('bp_notifications');
add_global_table('bp_user_blogs');
add_global_table('bp_user_blogs_blogmeta');
add_global_table('bp_xprofile_data');
add_global_table('bp_xprofile_fields');
add_global_table('bp_xprofile_groups');

add_global_table('domain_mapping');

They are with the default values. Do I have to change their values also? Or only the line 25?

Thanks.

  • Michael Bissett

    Hey @Anderson, hope you're doing well today! :slight_smile:

    In this case, instead of replacing the table noted on line 25, you'd be adding your global table to the other tables listed in that section, so that on a whole, it looks like this:

    add_global_table('liquidas_banco_global');
    
    add_global_table('affiliatedata');
    add_global_table('affiliatereferrers');
    add_global_table('am_actions');
    add_global_table('am_queue');
    add_global_table('am_schedule');
    add_global_table('autoblog');
    
    add_global_table('bp_activity');
    add_global_table('bp_activity_meta');
    add_global_table('bp_friends');
    add_global_table('bp_groups');
    add_global_table('bp_groups_groupmeta');
    add_global_table('bp_groups_members');
    add_global_table('bp_messages_messages');
    add_global_table('bp_messages_notices');
    
    add_global_table('bp_messages_recipients');
    add_global_table('bp_notifications');
    add_global_table('bp_user_blogs');
    add_global_table('bp_user_blogs_blogmeta');
    add_global_table('bp_xprofile_data');
    add_global_table('bp_xprofile_fields');
    add_global_table('bp_xprofile_groups');
    
    add_global_table('domain_mapping');

    I should note that we're in the process of rewriting the usage docs for Multi-DB, so this should be clearer in the future.

    Hope this helps! :slight_smile:

    Regards,
    Michael

  • Anderson

    @Michael Bissett,

    I could not understand you.

    I donwloaded the file from the wpmudev, so it is all the cases, not only my in case.

    I just noted that there are several lines similar to line 25, and I'm afraid to do ahead without ask someone before. But there is no instruction to do what you are telling.

    You are telling me to change all values, like this?

    add_global_table('liquidas_banco_global');
    
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    add_global_table('liquidas_banco_global');
    
    add_global_table('liquidas_banco_global');

    Or do have just to delete the other lines???

    Thanks.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.