Take the 2-minute tour ×
Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.

I have an application running in one server eg: My Server's Ip is 192.168.10.10, and I have the MySQL database server in the same machine. The application connects database server as localhost.

However, I have rented new server now and the IP is 192.168.10.11, it also has its own MySQL database server.

My quest is, I want this new server to be the slave of old server. I don't want to copy the Application to New Server, however I want the application in 192.168.10.10 (old server) to access the database of New slave server without exploiting security risks. The reason I want this is to send the read queries to new server, and write queries would be served by same old server.

Please guide me how to achieve this.

share|improve this question
    
A good starting point is the comprehensive MySQL howto: dev.mysql.com/doc/refman/5.5/en/replication-howto.html –  Emyl Oct 4 '13 at 12:33
    
Jhilke Dai, your question touches on some of the basics of replication. The process and its component stages can be quite difficult for the uninitiated to follow, so for your purposes and others', I am sharing an excellent tutorial on the topic. You don't say clearly which version of MySQL you are using. The tutorial describes work with 5.6. It's here: browse.feedreader.com/c/Planet_MySQL/325478973 –  Lena Weber Oct 15 '13 at 21:03
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.