So today I noticed that the `/var/log/mysqld.log` file has grown to a very large size. The weird thing (to me) is this is the vm that has whm on it and we setup a profile in it to use a remote vm for databases. I guess I am confused why this log is being populated on this vm since all db stuff is handled elsewhere.
Anyways, I modified the my.cnf file to comment out the following line (on the whm vm) :
```#log-error=/var/log/mysqld.log```
From what I can tell this will stop creating the log. Should I need it in the future I can always uncomment it. But, how can I safely clear/empty the existing `mysqld.log` file to free up all that space being used? And, aside from no entries being created anymore are there any other risks as far as operation with it turned off?
Thanks for any information.
Anyways, I modified the my.cnf file to comment out the following line (on the whm vm) :
```#log-error=/var/log/mysqld.log```
From what I can tell this will stop creating the log. Should I need it in the future I can always uncomment it. But, how can I safely clear/empty the existing `mysqld.log` file to free up all that space being used? And, aside from no entries being created anymore are there any other risks as far as operation with it turned off?
Thanks for any information.