i wanted to switch from mysql to mariadb, to do so, i exported the old databeses and import them to a new mariadb server, now i have the problem, that the new imported database is smaller than the original.
I did the following:
Created a backup with mysqldump from mysql (mysqldump --all-databases --user=root --password --master-data > backupdatabase.sql)
Imported it to a new maridb-server (mysql -u root -p < backupdatabase.sql)
If in want to see, how big the databases are, i see the following:
On the original mysql-server:
mysql> SELECT table_schema "database", sum(data_length + index_length)/1024/1024 "size in MB" FROM information_schema.TABLES GROUP BY table_schema;
| database | size in MB |
| DB-1 | 0.40625000
| DB-2 | 4.09375000 |
| DB-3 | 506.60937500 |
6 rows in set (0.90 sec)
If i do now the same on the maraidb host:
MariaDB [(none)]> SELECT table_schema "database", sum(data_length + index_length)/1024/1024 "size in MB" FROM information_schema.TABLES GROUP BY table_schema;
| database | size in MB |
| DB-1 | 0.39062500 |
| DB-2 | 3.03125000 |
| DB-3 | 416.39062500 |
6 rows in set (0.09 sec)
Where can the diffrence come from? Is this my failure?