How to turn off MYSQL logging and disable mysql-bin.0000X files

How to turn off MYSQL logging and disable mysql-bin.0000X files

If you enable logging in your MYSQL installation, it will take up a lot of space, and may even use up all your space. This is very scary, and all this happens quietly, and you can't feel it at all...

The mysql-bin.0000X file is usually in the var directory of the MYSQL installation folder. Mine is /usr/local/mysql/var/. If yours is not here, then look for it...

Okay, let me provide a solution. First, open the /etc/my.cnf file and find the following content. It should be noted that the two lines of log-bin and binlog_format are not together, so comment them out.
log-bin=mysql-bin
binlog_format=mixed
The comment method is very simple. Just add a # symbol in front of them, and then delete the log file of mysql-bin.0000X.
Then execute this command
/usr/local/mysql/bin/mysql -u root -p
Enter the password and log in, then execute the reset master command. If successful, no information will be returned. If failed, a prompt will appear. This solves the problem!

via: http://etsc.xujc.com/jsb/JSFW/ShowArticle.asp?ArticleID=445

<<:  Install HHVM using the LTMH one-click installation package

>>:  123Systems: $10/year/3GB memory/50GB space/2TB bandwidth/OpenVZ/Los Angeles

Recommend

LimeISP: €11.99/month/5GB RAM/45GB SSD space/50TB traffic/VMware/Netherlands

LimeISP, a French hosting provider, is not a comp...

MXroute: Email service, $10 per year, 20GB of storage, unlimited accounts

MXroute, a foreign merchant, was first introduced...

Linode 1GB RAM KVM VPS Japan Tokyo 2 Simple Review

Details: Linode: $5/month/1GB RAM/20GB SSD space/...

PeakServers:$12/year/1 CPU/1G/25G/2T/1 IP/OpenVZ

I have introduced it many times. Now it seems tha...

【Black Friday】PQ.Hosting: 26% off permanently

There are many data centers to choose from. Coupo...

HostHoarders: $25/year/256MB RAM/10GB storage/500GB bandwidth/KVM/Dallas

HostHoarders, a newly established hosting company...