If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Master - Slave replication on the same windows machine.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-16-11, 07:11
vjsharma1980 vjsharma1980 is offline
Registered User
 
Join Date: Mar 2011
Posts: 1
Master - Slave replication on the same windows machine.

Hello,

I am into the setup of simple Master - Slave replication on the same windows machine.

Steps followed are:

1) Installed MySQL 5.0
2) Created two services using:
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt" --install MySQL1 --defaults-file="C:\Program Files\MySQL\MySQL Server 5.0\my1.ini"
"C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt" --install MySQL2 --defaults-file="C:\Program Files\MySQL\MySQL Server 5.0\my2.ini"

Where my1.ini is same as my.ini
except
[client]
port=3307
[mysqld]
log-bin=master-bin
log-bin-index=master-bin.index
server-id=1
port=3307

Where my2.ini is same as my.ini
except
[client]
port=3308
[mysqld]
relay-log=slave-relay-bin
relay-log-index= slave-relay-bin.index
server-id=2
port=3308

3) Started MySQL1 and MySQL2 services using:
net start mysql1
net start mysql2

Need further steps to carry out to get started with MySQL1 as Master & MySQL2 as Slave.

Thanks & Regards,
Vijay.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On