Frequently Asked Questions

The NearlyFreeSpeech.NET FAQ (*)

MySQL (*)

Q. How do I enable or disable MySQL logs?

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:

  1. Visit the MySQL panel of our member interface.
  2. Select the name of the relevant process to get to its MySQL Process Information panel.
  3. In the Actions box in the upper right, choose "Edit MySQL Settings."
  4. Enable the desired logs.
  5. Save the settings.
  6. Restart the process.
  7. Perform the activity you wish to log.
  8. Disable the logs.
  9. Request log retrieval using this assistance request.

On 5.x, when we retrieve logs, they will be removed and the process will be restarted.