LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-21-2010, 04:40 PM   #1
gimpy530
Member
 
Registered: Oct 2007
Posts: 98

Rep: Reputation: 16
Unable to set up replication in MySQL 5.0.77 on CentOS 5.5


I am looking into setting up replication in a production environment but currently this is on two test machines. I am following the documentation at http://dev.mysql.com/doc/refman/5.0/...ion-howto.html but I am unable to get past "16.1.1.10 Setting the Master Configuration on the Slave". When I do the CHANGE MASTER TO I am getting a syntax error for some reason. What am I doing wrong? These servers run "CentOS release 5.5 (Final)" and "MySQL 5.0.77-log Source distribution" installed via yum. The only changes from default are that I created a single database on the master before doing the table lock and dump, then everything else has been done exactly to what the documentation states, but is still failing. Any help is appreciated but I'm no database expert, just a Linux admin.

The option skip-networking is not in the config file on either server and neither one runs SELinux or any firewall.

mysql> CHANGE MASTER TO
-> MASTER_HOST='192.168.1.220'
-> MASTER_USER='repl'
-> MASTER_PASSWORD='removed'
-> MASTER_LOG_FILE='mysql-bin.000002'
-> MASTER_LOG_POS='98';
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'MASTER_USER='repl'
MASTER_PASSWORD='removed'
MASTER_LOG_FILE='mysql-bin.00' at line 3
 
Old 06-22-2010, 01:14 AM   #2
MarkBurke
LQ Newbie
 
Registered: Nov 2003
Location: Orange County, CA, USA
Distribution: aix, rhel, ubuntu
Posts: 24

Rep: Reputation: 0
You need commas between the OPTIONS (MASTER_HOST='192.168.1.220' , MASTER_USER='repl', etc )
 
Old 06-22-2010, 11:22 AM   #3
tdnnash25
Member
 
Registered: Apr 2009
Posts: 63

Rep: Reputation: 15
Did you get this resolved?
 
Old 06-22-2010, 06:04 PM   #4
gimpy530
Member
 
Registered: Oct 2007
Posts: 98

Original Poster
Rep: Reputation: 16
Just tested, it's now working. Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How To Set Up MySQL Database Replication With SSL Encryption On CentOS 5.4 LXer Syndicated Linux News 0 02-18-2010 07:50 PM
LXer: How To Set Up MySQL Database Replication With SSL Encryption On Ubuntu 9.10 LXer Syndicated Linux News 0 02-09-2010 09:30 AM
LXer: How To Set Up Database Replication In MySQL On Ubuntu 9.10 LXer Syndicated Linux News 0 01-12-2010 08:30 AM
Unable to set root password on new mysql install Arty Ziff Linux - Server 2 01-22-2009 11:17 PM
LXer: How To Set Up Database Replication In MySQL LXer Syndicated Linux News 1 06-23-2006 08:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration