mysql replication

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

mysql replication

Unread post by nobody »

Hello guys.

I want to srtup a mysql replication. I have started reading the fine manuals.
Has anyone done so ? Maybe someone can also share some configurations and tips if so ?

Thanks !
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: mysql replication

Unread post by nobody »

Seems everything is ok with the master.

But whatever I do the slave wont run and I keep seeing this error :

Slave SQL Thread not running!
Slave IO Thread not running!

Any ideas ?
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4155
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: mysql replication

Unread post by mikeshinn »

Sounds like you make not have configured the slave correctly. How did you setup replication?
nobody
Forum Regular
Forum Regular
Posts: 349
Joined: Sun Mar 29, 2009 6:52 pm

Re: mysql replication

Unread post by nobody »

mikeshinn wrote:Sounds like you make not have configured the slave correctly. How did you setup replication?
Hi Mike !

In the my.cnf I have

Code: Select all

server-id=2
master-host = hostname
master-user = myuser
master-password = thepass....
master-port = 3306
relay-log = mysql-bin
log-bin=mysql-bin
log-error=mysql-bin.err
report-host=host_vm
I also run a query

Code: Select all

CHANGE MASTER TO
  MASTER_HOST='host',
  MASTER_USER='user',
  MASTER_PASSWORD='pass',
  MASTER_PORT=3306,
  MASTER_LOG_FILE='master2-bin.001',
  MASTER_LOG_POS=4,
  MASTER_CONNECT_RETRY=10;
Hello IT.
Phone : Blah Blah ....
Have you tried turning it on and off again ?
Phone : Blah Blah ....
....
I'm sorry, are you from the Past ?!
http://www.youtube.com/watch?v=-E4fm4Wqego
Post Reply