2013/10/22

Mysql received end packet from server, apparent master shutdown

Then, it means the slave is sharing an ID with another slave/node in the replication setup. Check the server ID to make sure it is unique.
=>server_id+server_uuid
show variables like '%server%';
| server_id                       | 2              |
| server_id_bits                  | 32             |
| server_uuid                     | **-**-**-**-** |



server_uuid=>auto.cnf
    Attempt to read and use the UUID written in the file data_dir/auto.cnf exit on success. Otherwise, generate a new UUID and save it to this file, creating the file if necessary.

DBをコピーする時、auto.cnfもコピーしたのせい。。。