MariaDB 10.5 : shrink ibdata after innodb_file_per_table = ON Hint

systemctl stop mariadb

 

mv /var/lib/mysql/ibdata* /backup/

mv /var/lib/mysql/ib_logfile* /backup/

 

systemctl start mariadb