Linux, Apache, PHP, MySQL Administrators Forums

Go Back   Linux, Apache, PHP, MySQL Administrators Forums > LAMP Forums > MySQL

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-23-2009, 04:26 PM
Junior Member
 
Join Date: Jan 2009
Location: HongKong
Posts: 8
Default MySQL Replication tutorial

my client wants to setup mysql replication on his servers, i am not good with it.do you have a step by step procedure? i'm fairly new to administering mysql, I just used it with my scripts. thanks - jack
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-23-2009, 04:32 PM
Administrator
 
Join Date: Jan 2009
Posts: 42
Lightbulb

jack - first, welcome to LAMP Admins, glad to have you here

For an in-depth information on MySQL Replication, the MySQL manual should be your first stop. MySQL :: MySQL 5.0 Reference Manual :: 16 Replication

However as you said you are fairly new, check out HowToForge's detailed tutorial on how to setup MySQL replication. How To Set Up Database Replication In MySQL | HowtoForge - Linux Howtos and Tutorials

If you are stuck on and have trouble with any part of the tutorials you can ask here
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-25-2009, 02:58 PM
Junior Member
 
Join Date: Jan 2009
Location: HongKong
Posts: 8
Cool

Quote:
Originally Posted by swordfish View Post
jack - first, welcome to LAMP Admins, glad to have you here

For an in-depth information on MySQL Replication, the MySQL manual should be your first stop. MySQL :: MySQL 5.0 Reference Manual :: 16 Replication

However as you said you are fairly new, check out HowToForge's detailed tutorial on how to setup MySQL replication. How To Set Up Database Replication In MySQL | HowtoForge - Linux Howtos and Tutorials

If you are stuck on and have trouble with any part of the tutorials you can ask here
Thanks swordfish, the howtoforge article got me up and running quickly on my test servers.

However I experienced errors immediately when I started the slave server. Some duplicate key exist error, I figure why would this occur. A quick search on google turned up that to get an accurate snapshot of the server I need to shutdown the master server to replicate with which I didn't do in the first place.

I hope this helps someone who is starting with MySQL replication as well.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-25-2009, 03:01 PM
Administrator
 
Join Date: Jan 2009
Posts: 42
Default

Glad you're up and running. Furthermore you might want to make sure that time on your master and slave servers are accurately sync'ed as this could cause inaccurate data if you are reading your slave server for backend applications. Cheers!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
master and slave, mysql replication, mysql server


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:25 AM.


Community hosted with DotManila Consulting
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2