Installation of master server MySQL 5.6.12 on Centos 6.4.
Some information After fresh install:

[root@localhost mysql]# ls -l
total 110620
-rw-rw----. 1 mysql mysql       56 Aug  7 20:43 auto.cnf
-rw-rw----. 1 mysql mysql 12582912 Aug  7 20:43 ibdata1
-rw-rw----. 1 mysql mysql 50331648 Aug  7 20:43 ib_logfile0
-rw-rw----. 1 mysql mysql 50331648 Aug  7 20:42 ib_logfile1
-rw-r-----. 1 mysql root      1865 Aug  7 20:43 localhost.localdomain.err
-rw-rw----. 1 mysql mysql        5 Aug  7 20:43 localhost.localdomain.pid
drwx--x--x. 2 mysql mysql     4096 Aug  7 20:42 mysql
srwxrwxrwx. 1 mysql mysql        0 Aug  7 20:43 mysql.sock
drwx------. 2 mysql mysql     4096 Aug  7 20:42 performance_schema
-rw-r--r--. 1 root  root       111 Aug  7 20:43 RPM_UPGRADE_HISTORY
-rw-r--r--. 1 mysql mysql      111 Aug  7 20:43 RPM_UPGRADE_MARKER-LAST


Connected as root:

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
+--------------------+
3 rows in set (0.00 sec)

mysql> show master status;
Empty set (0.00 sec)


Nothing special. very fresh installation.

Changing my.cnf configuration. i will attach link to this file for downloading my.cnf. So my.cnf from MASTER:

https://app.box.com/s/j0pkuhy8sx08ne2stu2e

Before restarting server with new my.cnf please consider these steps too:

[root@localhost mysql]# mkdir data
[root@localhost mysql]# chown mysql:mysql -R /var/lib/mysql/data

Restarting:

[root@localhost ~]# service mysql restart
Shutting down MySQL..                                      [  OK  ]
Starting MySQL...                                          [  OK  ]


Information from fresh Master server with new my.cnf:


mysql> show binary logs;
+------------------+-----------+
| Log_name         | File_size |
+------------------+-----------+
| mysql-bin.000001 |       151 |
+------------------+-----------+
1 row in set (0.00 sec)


mysql> show master status\G
*************************** 1. row ***************************
             File: mysql-bin.000001
         Position: 151
     Binlog_Do_DB: 
 Binlog_Ignore_DB: 
Executed_Gtid_Set: 
1 row in set (0.00 sec)

Creating test database and table:

mysql> create database crash_test;
Query OK, 1 row affected (0.06 sec)

mysql> use crash_test;
Database changed
mysql> create table crash_table(id int not null);
Query OK, 0 rows affected (0.44 sec)

mysql> insert into crash_table values(1),(2),(3),(4);
Query OK, 4 rows affected (0.10 sec)
Records: 4  Duplicates: 0  Warnings: 0


mysql> show master status\G
*************************** 1. row ***************************
             File: mysql-bin.000001
         Position: 827
     Binlog_Do_DB: 
 Binlog_Ignore_DB: 
Executed_Gtid_Set: 8d982986-ffc3-11e2-8152-2089846422ad:1-3
1 row in set (0.00 sec)


So GTID is working correctly.

Creating user for replication:

mysql> create user 'repl'@'%' identified by '12345';
Query OK, 0 rows affected (0.05 sec)

mysql> grant replication slave, replication client on *.* to 'repl'@'%';
Query OK, 0 rows affected (0.05 sec)

mysql> show grants for 'repl'@'%';+-------------------------------------------------------------------------------------------------------------------------------------+
| Grants for repl@%                                                                                                                   |
+-------------------------------------------------------------------------------------------------------------------------------------+
| GRANT REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'repl'@'%' IDENTIFIED BY PASSWORD '*00A51F3F48415C7D4E8908980D443C29C69B60C9' |
+-------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.00 sec)



So for conclusion:
GTID enabled, replication user created ready to be a master.










