MySQL [testdb]> reset master;
Query OK, 0 rows affected (0.01 sec)
MySQL [testdb]> show binary logs;
+------------------+-----------+
| Log_name | File_size |
+------------------+-----------+
| mysql-bin.000001 | 120 |
+------------------+-----------+
1 row in set (0.00 sec)
MySQL [testdb]> grant replication slave on *.* to 'carey'@'%' identified by '123456';
Query OK, 0 rows affected (0.01 sec)
MySQL [testdb]> show master status;
+------------------+----------+--------------+------------------+-------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB | Executed_Gtid_Set |
+------------------+----------+--------------+------------------+-------------------+
| mysql-bin.000001 | 325 | | mysql | |
+------------------+----------+--------------+------------------+-------------------+
1 row in set (0.00 sec)