wiki icon indicating copy to clipboard operation
wiki copied to clipboard

Migrate from MariaDB to PostgreSQL

Open aqustiq opened this issue 6 years ago • 2 comments

Question I want to migrate my WikiJS DB from MariaDB 10.4 to PostgreSQL 10. What is your advise for best practice? Thx

Host Info (please complete the following information): OS: Debain 10 Wiki.js version: 2.3.81 Database engine: MariaDB 10.4.12

aqustiq avatar May 13 '20 19:05 aqustiq

Never tested it myself but maybe worth to have a look: https://github.com/dimitri/pgloader

winkelement avatar May 22 '20 15:05 winkelement

I would suggest exporting all your content (either via the Local Disk or Git storage module), install a new instance with Postgres, then import back the content.

Using tools to convert schemas and data from mariadb to postgres might work, but you risk introducing an incompatible schema that could break down the line with future updates.

NGPixel avatar May 24 '20 06:05 NGPixel