Symptoms
On servers hosting Magento websites, MySQL's disk usage will grow extremely fast.
Description
Magento logs to MySQL by default and does not automatically remove log data. This causes the Magento MySQL database to grow each time a user visits the site.
Workaround
Here is a third-party document discussing how to address this issue.
mysql data size keep increase to 36 GB(or more until hdd full) | Magento StackExchange
In that document, running PHP from the command-line is mentioned. Here is a relevant document:
How to run PHP commands via Terminal
And here is the relevant document for configuring cron jobs: