You can use below steps:
Login to your server via SSH as root user.
You can run below command :
mysql -e "show variables like '%log%';"
Here you have to find the option “log_error” and you will get the log file.
If you are still not able to get response then you can check mysql configuration...