Lnmp how to disable mysql log Protection hard disk space LNMP
BitsCN.com
Today, we found that the VPS hard disk is almost full. The first reaction is: it must have been caused by a log file of something, because it had similar experience in WINDOWS before.
After analysis, find the reason: MYSQL log file.
You can also run the following command to check the path (if it is not LNMP, the path may be different ):
Du-h -- max-depth = 1/usr/local/mysql/var /*
If you see a lot of large files named mysql-bin.000014, it means you also need to close the log file, because you don't know which day they will fill up your VPS hard disk.
Use WINSCP to delete these files.
How to disable:
Vi/etc/my. cnf
Find:
Log-bin = mysql-bin
Binlog_format = mixed
[Code]
Comment out the two lines, and add #
Save the settings.
Run the following command to restart LNMP. Close.
[Code]
/Root/lnmp restart
BitsCN.com