I'm using MySQL (8.0.33-winx64, for Windows) with Python 3 and mysql.connector package.
Initially my mysql-8.0.33-winx64\data folder was rather small: < 100 MB.
Then after a few tests of CREATE TABLE..., INSERT... and DROP TABLE..., I notice that even after I totally drop the tables, the data folder keeps growing:
#innodb_redofolder seems to stay at max 100 MB#innodb_tempseems to be smallbinlog.000001: this one seems to be the culprit: it keeps growing even if I drop tables!
How to clean this data store after I drop tables, to avoid unused disk space with MySQL?
Is it possible directly from Python3 mysql.connector API? Or from a SQL command to be execute (I already tried "OPTIMIZE" without success)? Or do I need to use an OS function manually (os.remove(...))?
Note: the config file seems to be in (no default config file is created after a first run of the server, we can create it in mysql-8.0.33-winx64\data\auto.cnf in the portable Windows version (non-used as a service, but started with mysqld --console)mysql-8.0.33-winx64\my.cnf)