Just wondering if it’s normal to have a completely empty MySQL error.log file?
I thought it may have just been a slow day, but it appears to always be empty. I haven’t seen anything written to that file for weeks and the logrotate gz files are also empty.
The log file is here: /var/log/mysql/error.log
Looking at the mariadb config file from the HestiaCP (it uses this file: /etc/mysql/my.cnf) I can see the following line in that file:
log_error=/var/log/mysql/error.log
So as far as I can tell, I’m checking the correct log file, and that log file is empty, and the archived logrotate files are also showing empty.
Do I have some issue with the configuration for the log files or is it really running with 0 errors.
I waited for a while before posting this question, hoping to see some activity in those logs, but after several weeks, still empty.
Working as expected? Or anyway I can trigger an error to confirm it’s writing it?
I confirmed that the config file is definitely the correct one as adding the below two lines to the config file resulted in the mysql.log file being created and updated. So that’s at least working.
I’m Sorry! I spoke too quick. Restarting mysql service does result in messages being written to error log. I get similiar messages to what you posted above. So it is working!
Hmm, very strange, so I guess it’s working properly. So it’s normal to not have any errors written to the log for a day or so? I wouldn’t have thought so, but that’s great!
Nice! Yeah, I guess I’m so used to seeing so much noise in the apache logs, that I just assumed I would see at least something in these mysql logs. I have a quickly cron job that sends me an email with the last 50 lines of the mysql, apache error log files, mailqueue, and syslog.
I just started thinking why is the mysql one always blank.
Thanks for clearing that up for me. And that’s great news. One less thing to think about.
Note to self: Update my Bash Script to remind me → this log often empty, enjoy the quiteness.
@Raphael - btw, thanks for the quick response. You, Falzo and Eris are awesome. Deeply appreciate the work you guys do and the help you provide.
Things have been quite nice with the new HestiaCP. I think the last open issue I have is the open_basedir & phpmyadmin issue being reported in the apache logs (/var/log/apache2/error.log). Eris mentioned this is a known issue and something that would be addressed in the 1.4 release.
I was wondering if there is an easy fix for that issue that I could deploy in the meantime.