来源:mysql的操做记录日志,能够用来恢复备份。mysql
清理方法:sql
[root@jiucool var]# /usr/local/mysql/bin/mysql -u root -p Enter password: (输入密码) Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 264001 Server version: 5.1.35-log Source distribution Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement. mysql> reset master; (清除日志文件) Query OK, 0 rows affected (8.51 sec) mysql>
不产生日志:shell
vim /etc/my.cnfvim
注释掉spa
log-bin=mysql-bin 日志