Sorry if this is a wrong place to ask.
I use Ubuntu 16.04, with very little knowledge of linux system, I depend on webmin to host my website. Recently there has been a problem where mysql won't start, so I am trying to look into the error logs to get a clue about what is wrong.
My first question is: What is the general way to find where the error log is? I've done a lot of search but it seems to me in different system, and with different setting, these error logs could be in different places, and the filename is also different. Although I've managed to find them under
/var/log/mysql/ (which is different from every source I was able to find), I'd like to know how to find these logs' location in general. I think there should be some configuration file in control of this, right? Besides, on some webpage a
mysql.log file is mentioned, but I can't find where it is.
/var/log/mysql, there are files like
error.log.2.gz. Except the
error.log file, in order to read other files I have to extract them first. Is there any way, like some mysql command , to read them directly?