Hi All (and even perhaps @Leon Stringer),
There is a thread (now locked) here - https://moodle.org/mod/forum/discuss.php?d=384451
I have the same issue in that the `mdl_logstore_standard_log size` file is approaching 10GB. The logs were set to never delete, thus we have logged in there dating back a few years. I have cleaned up the table using :
DELETE FROM mdl_logstore_standard_log WHERE timecreated < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL 90 DAY));However, the file is large, so I tried to optimise using:
OPTIMIZE TABLE mdl_logstore_standard_log
but get the following error:+------------------------------------------+----------+----------+-------------------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------------------------------+----------+----------+-------------------------------------------------------------------+
| bitnami_moodle.mdl_logstore_standard_log | optimize | note | Table does not support optimize, doing recreate + analyze instead |
| bitnami_moodle.mdl_logstore_standard_log | optimize | error | The table 'mdl_logstore_standard_log' is full |
| bitnami_moodle.mdl_logstore_standard_log | optimize | status | Operation failed |
+------------------------------------------+----------+----------+-------------------------------------------------------------------+
3 rows in set, 1 warning (13 min 44.848 sec)
I suspect this might be something to do with what @Leon Stringer) mentions, i.e. "assuming innodb_file_per_table is enabled", but TBH, I am unsure that this is.