Is it possible to apply the Replication mechanism on single MySQL server?
I want to replicate the changes done in test db to Main db in the same server, so can i use this Replication mechanism on same server?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Not within the same server – the replication logs include the database name a command was executed against, and there isn’t a way to change this.
You could however run two instances of MySQL on separate ports, allowing you to have two databases of the same name, and set up replication between the two. You’d need to have two separate installations of MySQL using different my.ini files and different data directories for this to work.