Title: localhost databse
Last modified: July 14, 2017

---

# localhost databse

 *  [mywpaccount](https://wordpress.org/support/users/mywpaccount/)
 * (@mywpaccount)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/localhost-databse/)
 * 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](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/localhost-databse/#post-9344523)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/shardb.svg)
 * [SharDB](https://wordpress.org/plugins/shardb/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/shardb/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/shardb/)
 * [Active Topics](https://wordpress.org/support/plugin/shardb/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/shardb/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/shardb/reviews/)

## Tags

 * [multisite](https://wordpress.org/support/topic-tag/multisite/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/localhost-databse/#post-9344523)
 * Status: not resolved