I have Moodle 3.3.9+ deployed on Debian 8 configured with MySQL and I want to upgrade the build to 3.8.1 running on Ubuntu 18.04LTS and PostgreSQL.
The reason is to move to a current OS and the database type recommended by Moodle on our devs. However, I can also decide to stick with MySQL if that is the better option. We also have systems running the old build that are currently in use, and the desire is to migrate to the new build without loosing and data/content and as seamless as possible.
I have searched through the forums and several sites looking for the best way to accomplish, and not being a database guy, I have not found a smooth transition.
What I have attempted:
1. Direct migration using the Moodle tool - Was able to complete the process, however, the tool would not allow me to use the 'mdl_' since it was already in the destination database. I could migration if I changed the prefix to something like 'mdl2'. I also attempted the migration after creating the moodle database on the destination server, but before installing moodle, which is where I am now. I copied over the moodle and moodledata directories, but nothing is working as of yet. I am sure all the changes I am making from old to new, new PHP, and database is adding complexity and problems
2. Other options on my list to attempt are:
- 3.3.9+ (MySQL) to 3.8.1 (PostgreSQL) via Moodle migration
- 3.3.9+ (MySQL) to 3.8.1 (PostgreSQL) via manual db backup/restore
- 3.3.9+ (MySQL) to 3.8.1 (PostgreSQL) via Moodle Adminer Export/Import
- 3.3.9+ (MySQL) to 3.8.1 (MySQL) via Moodle migration
- 3.3.9+ (MySQL) to 3.8.1 (MySQL) via manual db backup/restore
- 3.3.9+ (MySQL) to 3.8.1 (MySQL) via MySQLAdmin Export/Import
Is this migration possible? Do I need to move to a version before going to the latest?
Any help would be appreciated if someone knows a good way to accomplish this task.