Content
You are here:
Migrating from MySQL to PostgreSQL
Added by Dennis Aspö almost 5 years ago
I'm trying to migrate from MySQL to PostgreSQL and I am following the guides, but I have two problems.
- The guide says "Please note: Ensure that the URL starts with mysql:// , not with ` mysql2://` !"
Well it does start with mysql2 for me. What am I supposed to do about that? The guide only says this is important but not why or what can be done about it.
- I went through all the steps anyway and tried running the migration script but I get this error
sudo openproject run ./docker/mysql-to-postgres/bin/migrate-mysql-to-postgres
sh: /opt/openproject/docker/mysql-to-postgres/bin/migrate-mysql-to-postgres: File or catalog does not exist
So I am lacking this file for migrating, Is it because my version of OpenProject is too old? It's version 7.4.7
Replies (2)
I installed the latest OpenProject and I also had to install the latest PostgreSQL and then the migration worked.
However NOW it refuses to work when I run openproject reconfigure. I get this same bug:
https://community.openproject.com/projects/openproject/work_packages/31567/activity
I need to have openproject running and I can't wait for this to be fixed, if it ever will be fixed. Needing this running now.
Skipping the migration of the offending module helped me get the new openproject running.
openproject OPENPROJECT_SKIP_TEXTILE_MIGRATION="true"