http://www.yuminstall.com/how-to-remove-mysql-relay-log.html CHANGE MASTER TO changes the parameters that the slave server uses for connecting to the master server, for reading the master binary log, and reading the slave relay log. It also updates t…
mysql主库中设置了打开binlog模式后,会在datadir目录下生成大量的日志文件,mysql默认是不会自动清理的,我们来设置下mysql自动清理binlog文件 一.打开mysql [root@push-- ~]# mysql -uroot -p -S /var/lib/mysql//mysql.sock Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connecti…