Frequently Asked Questions
For MariaDB 10.x and later, set the following variables in a MySQL admin session, typically either via phpMyAdmin or from the MySQL command line client:
You can enable either or both of the log files, depending on your needs.
After taking these steps, log contents will be in the mysql.general_log and mysql.slow_log tables; no restart is required. Please see the MariaDB documentation for full details.
When you are finished, make sure to disable logging again, and truncate the log files to save space and cost:
For MariaDB 5.x, logging to tables is not supported. If you have an older process, consider upgrading, but in the mean time:
On 5.x, when we retrieve logs, they will be removed and the process will be restarted.