Part-DB-server icon indicating copy to clipboard operation
Part-DB-server copied to clipboard

Export from MySQL to MariaDB - Help!

Open henrikkoch opened this issue 5 months ago • 4 comments

Can anyone please help with a recepi of how to move all data from the MySQL db to a MariaDB

I have tried to export and import it to a MariaDB.

After this I have changed the PartDB DB path to the new with the correct logins. But this does not work.

It could be nice if we could get some kind of scripts that could to this export/import correct.

Have anybody succeeded with this?

henrikkoch avatar Jul 29 '25 21:07 henrikkoch

Do you mean that you ran a mysqldump and then sourced the .sql file in a mariadb session? Or something else?

virtadpt avatar Jul 30 '25 02:07 virtadpt

I used an online tool which could import the MySQL file and convert it to MariaDB. Like this one: https://www.rebasedata.com/convert-sql-to-mariadb-online

henrikkoch avatar Jul 30 '25 04:07 henrikkoch

What errors does MariaDB throw when trying to import the SQL dump? MariaDB and MySQL should be so similar, that i would not expect any issues. Or if there are ones these should be fixable by relaxing some SQL_MODE settings a bit.

jbtronics avatar Jul 30 '25 12:07 jbtronics

@jbtronics That's exactly what I was thinking. MariaDB is a fork of MySQL. And I've imported MySQL database dumps into MariaDB servers a few times now without incident. A significant number of webapps written in PHP interface with MariaDB without incident as well (or at least, all the ones I've thrown at the last couple of major releases).

virtadpt avatar Jul 31 '25 01:07 virtadpt