How to proceed setting up a secondary mysql linux slave?

Posted by Algorist on Server Fault See other posts from Server Fault or by Algorist
Published on 2013-01-28T22:21:14Z Indexed on 2013/10/29 9:58 UTC
Read the original article Hit count: 460

I have a mysql database master and slave in production. I want to setup additional mysql slave. There is around 15 Terabyte of data in the database and there are MYISAM and InnoDB tables in the database.

I am thinking of below options:

  1. Shutdown master database and copy the mysql data folder to secondary slave. Can Innodb tables be copied like this?
  2. Run flush table with read lock, scp the file to new slave and unlock the table and this is possible for myisam tables, can I do the same for innodb tables too?

Thanks for looking at the question.

© Server Fault or respective owner

Related posts about mysql

Related posts about mysql-replication