• Hi – I have wordpress ms installed using mamp (localhost).

    How do I configure add_db_server for this environment?

    Right now I have tried this but still no luck.

    add_db_server( ‘database_name’, 0, ”, 1, 1, ‘localhost’, ‘localhost’, ‘database_name’, DB_USER, DB_PASSWORD);

    add_db_server( ‘database_name’, 0, ”, 1, 1, ‘127.0.0.1’, ‘127.0.0.1’, ‘database_name’, DB_USER, DB_PASSWORD);

    add_db_server( ‘database_name’, 0, ”, 1, 1, ‘192.168.0.2’, ‘192.168.0.2’, ‘database_name’, DB_USER, DB_PASSWORD);

    What am I doing wrong?

Viewing 1 replies (of 1 total)
  • Plugin Author Ron Rennick

    (@wpmuguru)

    I use Mamp & this is what I added to my db-settings.php

    
    /* Add your configuration here */
    $shardb_hash_length = 1;
    $shardb_prefix = 'ron_';
    $shardb_dataset = 'ra';
    $shardb_local_db = true;
    
    //* Use this configuration for a hexidecimal based hash 
    ...
    

    I created the 17 DBs named ron_(0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,global) & ran the migration tool.

Viewing 1 replies (of 1 total)
  • The topic ‘localhost databse’ is closed to new replies.