SharDB update

  • windhamdavid
    Posted at 14:06h, 24 January Reply

    Ron.. you are great! thk U.

  • John Bacon
    Posted at 02:26h, 28 January Reply

    Woot! Thx Ron!

  • michael
    Posted at 19:33h, 24 February Reply

    Thanks for your great work.

    I have recently come to use SharDB to scale out our WordPress MU installs. Am currently trying to get it working on one of our sites.

    Our database setup is Master -> Slave via replication. It works great when I don’t use the add_slave function in db-settings.php, eg going to the master server as defined in wp-config.php.

    When I use add_slave, all functions seem to send back “Array”, eg in the html title of the site, search box. Also, it just keeps printing out “Sorry, no posts matched your criteria” regardless.

    Do you have any suggestions? This is on a completely new install of WordPress I believe I have sharded the DB ok as it works fine connecting to the master only.

    Here’s my db-settings.php config:

    $shardb_hash_length = 1;
    $shardb_prefix = ‘wpmu_’;
    $shardb_dataset = ‘dbset’;
    $enable_home_db = false;
    $num_vipdbs = 0;
    //$shardb_master_read = 99;
    $shardb_local_db = true;
    add_slave(1, ‘’, ‘’, USER***, PASS***);

    Many thanks for any comments/suggestions!

  • michael
    Posted at 19:59h, 24 February Reply

    Forgot to subscribe via email.

  • Mohini Bisht
    Posted at 12:53h, 20 April Reply

    dear sir, i’m using free hosting service which allows only 50 mb per database.

    can i use multiple databases for my blog.
    so that if one gets filled, other will be automatically start filling by the posts.

    • Mohini Bisht
      Posted at 12:58h, 20 April Reply

      if so, how to do that?

  • Scott
    Posted at 19:31h, 24 June Reply

    Hi Ron,
    Do you have a script to partition an existing DB in multiple DB’s?

  • Ron
    Posted at 21:18h, 26 June Reply

    I’ll be adding that with the 3.0 update.

Post A Comment