slave:/data01/mysql# ls -ltr
total 490784
drwx------ 2 mysql mysql 4096 Jun 4 17:00 performance_schema
-rw-rw---- 1 mysql mysql 56 Jun 4 17:01 auto.cnf
drwx------ 2 mysql mysql 4096 Jun 4 17:47 mysql
drwx------ 2 mysql mysql 4096 Jun 4 17:47 quartz
-rw-r--r-- 1 root root 283010708 Jun 8 12:47 zjzc.sql
drwx------ 2 mysql mysql 4096 Jul 1 06:28 zjzc
-rw-rw---- 1 mysql mysql 1661 Jul 3 18:21 slave-slow.log
srwxrwxrwx 1 mysql mysql 0 Jul 3 18:21 mysql.sock
-rw-rw---- 1 mysql mysql 174 Jul 3 18:21 mysqld-relay-bin.000017
-rw-rw---- 1 mysql mysql 52 Jul 3 18:21 mysqld-relay-bin.index
-rw-rw---- 1 mysql mysql 50331648 Jul 4 15:13 ib_logfile1
-rw-rw---- 1 mysql mysql 71 Jul 4 16:53 relay-log.info
-rw-rw---- 1 mysql mysql 39145983 Jul 4 16:53 mysqld-relay-bin.000018
-rw-rw---- 1 mysql mysql 135 Jul 4 16:53 master.info
-rw-rw---- 1 mysql mysql 50331648 Jul 4 16:53 ib_logfile0
-rw-rw---- 1 mysql mysql 79691776 Jul 4 16:53 ibdata1
slave:/data01/mysql# ls -ltr *info*
-rw-rw---- 1 mysql mysql 71 Jul 4 16:56 relay-log.info
-rw-rw---- 1 mysql mysql 135 Jul 4 16:56 master.info
当设置为:
relay_log_info_repository = TABLE
master_info_repository = TABLE
relay_log_recovery = 1
文件自动消失
slave:/data01/mysql# ls -ltr *info*
ls: cannot access *info*: No such file or directory