Steps to know the location of MySQL or MariaDB log

kumkumsharma

Administrator
Staff member
You can use below steps:
  • Login to your server via SSH as root user.
  • You can run below command :
Code:
mysql -e "show variables like '%log%';"
Code:
  • 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 file my.cnf. now you have to check the log location /etc/my.cnf.
  • This is the main domain which is going to add in your address bar.
 
Top