關閉 MySQL General Log


由於 General Log 檔案越大,相對網站的速度就會被影響,或使空間不足
所以將其刪除,方法如下

1
2
3
4
5
6
7
vi /etc/my.cnf
#log=/var/log/mysqld.general.log

>mysql -uroot -p
SET GLOBAL general_log = 'OFF';

/etc/init.d/mysqld restart