My question is how to stop logs on mysql
log_error = /var/log/mysql/error.log i have commented already.
with slow queries too. But i have one more log file in /var/lib/mysql/hostname.log
with hostname I mean that for example I am on server called hulk so the log will be
hulk.log and so on. In that log are all queries. So the log is growing really fast and also
is really big. So my question is how to disable this log ?
Best Answer
If you would like to dynamically stop logging, login as
root@localhost
and run this:That's it. No restart of mysql needed.
If you are not
root@localhost
, you will need to be logged in as a user with SUPER privilege.