來源: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 日誌