i seperate this file from previous two. it will clearly distinguish all steps that i did. So we have 2 fresh installed MySQL 5.6.12 with GTID enabled. Slave is marked as read_only (you can check it from slave's my.cnf) I am going to use "mysqlreplicate" utility for creating simple 1 master->1 slave replication. ifconfig from master server: [root@localhost ~]# ifconfig eth0 Link encap:Ethernet HWaddr 20:89:84:64:22:AD UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:16 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 b) TX bytes:480 (480.0 b) wlan0 Link encap:Ethernet HWaddr 2C:D0:5A:3D:4E:60 inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::2ed0:5aff:fe3d:4e60/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:27174 errors:0 dropped:0 overruns:0 frame:0 TX packets:25770 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:25113547 (23.9 MiB) TX bytes:4441898 (4.2 MiB) ifconfig from slave server: [root@localhost mysql]# ifconfig eth0 Link encap:Ethernet HWaddr 08:00:27:D5:49:2C inet addr:192.168.1.4 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fed5:492c/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:13411 errors:0 dropped:0 overruns:0 frame:0 TX packets:10989 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:16602757 (15.8 MiB) TX bytes:1156982 (1.1 MiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:8 errors:0 dropped:0 overruns:0 frame:0 TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:480 (480.0 b) TX bytes:480 (480.0 b) And now i create a super user in slave: mysql> create user 'remote'@'%' identified by '12345'; Query OK, 0 rows affected (0.01 sec) mysql> grant all on *.* to 'remote'@'%'; Query OK, 0 rows affected (0.00 sec) mysqlreplicate version: [root@localhost ~]# mysqlreplicate --version MySQL Utilities mysqlreplicate version 1.3.3 (part of MySQL Workbench Distribution 5.2.47) Copyright (c) 2010, 2013 Oracle and/or its affiliates. All rights reserved. This is a release of dual licensed MySQL Utilities. For the avoidance of doubt, this particular copy of the software is released under the version 2 of the GNU General Public License. MySQL Utilities is brought to you by Oracle. So i am starting to use mysqlreplicate from master server: RUN number 1: [root@localhost ~]# mysqlreplicate --master=root:12345@localhost:3306 --slave=remote:12345@192.168.1.4:3306 --rpl-user=repl:12345 -vvv # master on localhost: ... connected. # slave on 192.168.1.4: ... connected. # master id = 1 # slave id = 2 # master uuid = 8d982986-ffc3-11e2-8152-2089846422ad # slave uuid = dc9f26ec-ffc8-11e2-8175-080027d5492c # Checking InnoDB statistics for type and version conflicts. # Checking storage engines... # Checking for binary logging on master... # Setting up replication... # Connecting slave to master... # CHANGE MASTER TO MASTER_HOST = 'localhost', MASTER_USER = 'repl', MASTER_PASSWORD = '12345', MASTER_PORT = 3306, MASTER_AUTO_POSITION=1 # Starting slave from master's last position... # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master # IO status: Connecting to master # IO thread running: Connecting # IO error: 1040:error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 1 # SQL thread running: Yes # SQL error: None # Waiting for slave to synchronize with master ERROR: failed to synch slave with master. ERROR: Cannot setup replication. RUN number 2: [root@localhost ~]# mysqlreplicate --master=root:12345@localhost:3306 --slave=remote:12345@192.168.1.4:3306 --rpl-user=repl:12345 -vvv RUN number 3: [root@localhost ~]# mysqlreplicate --master=root:12345@localhost:3306 --slave=remote:12345@192.168.1.4:3306 --rpl-user=repl:12345 -vvv After this here is information from SLAVE: mysql> show master status\G *************************** 1. row *************************** File: mysql-bin.000001 Position: 528 Binlog_Do_DB: Binlog_Ignore_DB: Executed_Gtid_Set: dc9f26ec-ffc8-11e2-8175-080027d5492c:1-2 1 row in set (0.00 sec) mysql> show slave status\G *************************** 1. row *************************** Slave_IO_State: Connecting to master Master_Host: localhost Master_User: repl Master_Port: 3306 Connect_Retry: 60 Master_Log_File: Read_Master_Log_Pos: 4 Relay_Log_File: mysql-relay-bin.000001 Relay_Log_Pos: 4 Relay_Master_Log_File: Slave_IO_Running: Connecting Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 0 Relay_Log_Space: 151 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 1045 Last_IO_Error: error connecting to master 'repl@localhost:3306' - retry-time: 60 retries: 3 Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 0 Master_UUID: Master_Info_File: mysql.slave_master_info SQL_Delay: 0 SQL_Remaining_Delay: NULL Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it Master_Retry_Count: 86400 Master_Bind: Last_IO_Error_Timestamp: 130808 07:16:42 Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: Executed_Gtid_Set: dc9f26ec-ffc8-11e2-8175-080027d5492c:1-2 Auto_Position: 1 1 row in set (0.00 sec) mysql> show binary logs; +------------------+-----------+ | Log_name | File_size | +------------------+-----------+ | mysql-bin.000001 | 528 | +------------------+-----------+ 1 row in set (0.00 sec) Here is information from MASTER: mysql> show master status\G *************************** 1. row *************************** File: mysql-bin.000001 Position: 1254 Binlog_Do_DB: Binlog_Ignore_DB: Executed_Gtid_Set: 8d982986-ffc3-11e2-8152-2089846422ad:1-5 1 row in set (0.00 sec) mysql> show binary logs; +------------------+-----------+ | Log_name | File_size | +------------------+-----------+ | mysql-bin.000001 | 1254 | +------------------+-----------+ 1 row in set (0.00 sec) mysql> show slave hosts; Empty set (0.00 sec) As i understand replication did not setup correctly and no slave is not connected. master->slave replication does not functional at moment. Now i decide to to restart both of servers. firstly i begin from master: [root@localhost ~]# service mysql restart Shutting down MySQL.. [ OK ] Starting MySQL.. [ OK ] And then restarted SLAVE: [root@localhost ~]# service mysql restart Shutting down MySQL.. SUCCESS! Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdomain.pid). So SLAVE not restarted. i will attach error logs from master and slave too.