Select Page

Creating MongoDB replica set with Arbiter

1) Install MongoDB on local machine https://docs.mongodb.com/manual/installation/ 2) Create data directories for each replicate set root@prakash:~/mongo# mkdir primary root@prakash:~/mongo# mkdir secondary root@prakash:~/mongo# mkdir arbiter root@prakash:~/mongo# ls...

Running multiple mysql instances on same machine

Running more than one MySQL instance on same machine can be done in few methods, the easiest (dirty) method can be using different port,socket & data directory configuration. On linux machine, simply copy /etc/my.cnf file to /etc/my2.cnf vi /etc/my2.cnf Change...