MariaDB Debugging
Turn on logging
In order to enable database logs we have to edit the following file:
sudo nano /etc/mysql/my.cnfInside this file we have to uncomment the lines below:
general_log_file = /var/log/mysql/mysql.log
general_log = 1After that restart the service:
sudo systemctl restart mysqlNow tail can be used to see the latest additions in log file:
sudo tail -f /var/log/mysql/mysql.logLast updated