Choosing PostgreSQL or MySQL for Redmine: what decides it
For most teams putting Redmine into production, PostgreSQL is the simpler default. Redmine supports PostgreSQL directly, PostgreSQL is released under a permissive license, and it does not require you to change any transaction settings. MySQL 8.0 to 8.4 is also supported, but only when the server runs with transaction isolation set to READ COMMITTED, so the choice is less about features and more about whether your team will keep that setting correct on every server, replica and rebuild for the life of the system. An IT or platform team already running MySQL for other applications, with someone who owns its configuration and backups, can reasonably pick MySQL. A team with no existing MySQL practice should weigh the extra configuration step as an ongoing cost.
Redmine's supported list has two narrower options. SQL Server 2012 or higher is supported, which fits an organization whose database standard is Microsoft and whose DBAs already manage that platform. SQLite is supported, but the installation guide states it is not suited to multi-user production use, so it belongs in evaluation or a single-user test environment only. Before deciding, confirm which Redmine release you will run against the database versions your platform team supports, since the Redmine download page lists 7.0.2 and 6.1.5 as current stable releases and the installation guide sets the database requirements for each line. Check with your own DBAs who will carry backups, restores and major version upgrades, because that skill set, more than the initial install, determines the long-term effort.
Database options for Redmine and when each fits
This table compares the four database options Redmine can run on, with the support status, setup requirement and typical team for each. Read it as a first filter: if your standard is PostgreSQL or MySQL, the setup notes tell you what to configure before installation.
| Database | Support status | Setup requirement | Suits teams that |
|---|---|---|---|
| PostgreSQL | Supported. Redmine lists it as a supported production database alongside MySQL and SQL Server. | Use a supported PostgreSQL major version. Confirm the version against the PostgreSQL support calendar before you install, since older majors leave support on fixed dates. | Already run PostgreSQL, want a mature open-source license and have or plan a backup and replication practice for it. |
| MySQL 8.0 to 8.4 | Supported within this version range only. Redmine requires transaction isolation set to READ COMMITTED. | Set the transaction isolation level to READ COMMITTED on the server or in the connection, and confirm it is active before go-live. Check the exact version range against the Redmine installation guide. | Run MySQL operations already and have DBAs who can manage the isolation setting and version pinning. |
| MySQL with the Trilogy adapter | Available from Redmine 6.1.0, which added support for the Trilogy MySQL-compatible adapter. | Requires Redmine 6.1.0 or later. Confirm which adapter your Redmine release uses and keep the isolation requirement in place. | Run Redmine 6.1 or 7.0 on MySQL and want the adapter that Redmine 6.1 added. |
| SQL Server 2012 or higher | Supported by the installation guide for the listed versions. Confirm current Redmine release notes before choosing it for a new build. | Needs an ODBC or adapter setup that your team has tested on the target Redmine version. Plan extra validation time for plugins, since many are tested mainly on PostgreSQL and MySQL. | Have an existing SQL Server estate, DBAs and licensing already in place, and a reason to avoid a second database engine. |
| SQLite | Not suited to multi-user production use, according to the installation guide. | Use only for evaluation, testing or a single-user instance. Plan a move to a production database before users depend on it. | Trial installs, local testing or proof-of-concept work with one user. |
| Backup tooling | Redmine backs up the database and uploaded files together. Tooling depends on the engine you choose. | PostgreSQL uses pg_dump, pg_dumpall and continuous archiving with point-in-time recovery. MySQL uses mysqldump or Enterprise Backup if licensed. Test restores for whichever you pick. | Teams that will own restore testing and have a documented recovery target. |
| Replication and failover | Depends on the engine and the tools you add. PostgreSQL supports hot standby and synchronous or asynchronous replication, but automatic failover needs external tools. | Choose an HA design during planning. For MySQL, InnoDB Cluster and Group Replication are Community Edition features. Confirm that your Redmine setup works with the failover tool you select. | Need high availability and have the staff to operate a failover tool. |
| Major upgrades | PostgreSQL supports each major version for 5 years after release. MySQL LTS and Innovation tracks have different support windows. | Plan database upgrades alongside Redmine upgrades. Confirm the target database version against Redmine's supported list before each upgrade. | Have a change calendar that can absorb both Redmine and database upgrades on separate dates. |
How the MySQL READ COMMITTED requirement and Trilogy adapter change the setup
If you choose MySQL for Redmine, the server's transaction isolation level must be READ COMMITTED. Redmine supports MySQL 8.0 to 8.4 only with that setting, so it is not a default you can assume. Check it on the server itself, not only in the Redmine configuration. Connect with a client and run the query that reports the current isolation level for your MySQL version, then confirm that the value persists after a restart by checking the server's configuration file. A setting applied only to one session, or changed on a managed database service through a parameter group you do not review, can drift without anyone noticing.
Redmine 6.1.0 added support for the Trilogy MySQL-compatible database adapter, according to the Redmine 6.1 changelog. Before you pick an adapter for a new install or an existing one, confirm which adapter your Redmine line expects, since the Gemfile and database configuration must agree with it. Read the Redmine installation guide for the Redmine line you plan to run, and compare it with the changelog entry. If you run a line older than 6.1, do not assume Trilogy is available there. Record the adapter, server version and isolation level together in your deployment notes so an upgrade or a server replacement does not silently change them.
Treat the isolation check as part of acceptance testing and as a recurring item in your upgrade plan. Run the check again after any MySQL minor upgrade, after moving to a new host or managed service, and after changing Redmine major versions. Ask your implementation partner or internal team to document where the isolation value is set, who owns that change, and how a failed check is reported. Because the requirement depends on your exact Redmine and MySQL combination, confirm the supported pairing in the installation guide for your release before you commit to MySQL.
Six factors that should drive the database decision
Redmine runs on either PostgreSQL or MySQL, so the choice is mostly about what your team can operate well for years. The six factors below connect skills, licensing, editions, high availability, and backup and upgrade tooling, and each one names a decision you can check before you commit.
Existing database skills in your team
Start with the engine your database administrators already run in production. Someone must tune the server, manage roles, review slow queries and restore data at 2 a.m., and that work is cheaper when it matches existing runbooks and monitoring. Ask who would own the Redmine database after go-live and whether they have restored a backup of that engine in the past year. If the answer is no one, that gap matters more than any feature comparison.
Operating comfort with each engine
Consider how your team handles upgrades, replication and incidents on each engine, not only installation. Redmine works with either engine, but the MySQL setup carries an extra requirement: transaction isolation must be set to READ COMMITTED, and your team must keep that setting through server rebuilds and managed-service changes. Check whether your platform team can verify that setting on every server and whether the engine's operational tooling fits your monitoring.
PostgreSQL licensing terms
PostgreSQL is released under the PostgreSQL License, a permissive license similar to the BSD and MIT licenses. Your legal team can usually approve it without a commercial agreement for the database itself. Confirm with your counsel that the license and any hosting provider's packaging terms fit your policy, and record the decision alongside your Redmine license review, since Redmine is itself free under GPL v2.
PostgreSQL licenceMySQL Community or Enterprise edition
MySQL Community Edition is freely downloadable under the GPL and includes InnoDB Cluster, Group Replication with automated failover, MySQL Router, and replication. MySQL Enterprise Edition adds features such as Enterprise Backup for hot backups, Transparent Data Encryption, Enterprise Audit and 24x7 Oracle support. Decide whether any of those paid features are required by your controls, such as encryption at rest or audit logging, and ask for the Enterprise license cost in writing before you assume it is needed.
MySQL Enterprise EditionHigh availability tooling you will run
PostgreSQL provides hot standby servers and both synchronous and asynchronous replication, but it does not detect a failed primary or promote a standby by itself, so you must choose external failover tooling. MySQL Community includes Group Replication with automated failover and InnoDB Cluster. Decide how much automatic failover your Redmine service needs, who tests it, and how often, because an untested failover is a risk rather than a safeguard.
Backup and upgrade tooling
Plan backups and major-version upgrades before go-live. PostgreSQL supports point-in-time recovery through continuous archiving, and major upgrades can use pg_upgrade or logical replication. MySQL offers Enterprise Backup for hot backups in the paid edition. Confirm that your restore procedure covers both the database and the Redmine files directory, and that a restore has been tested on the version you will run.
Continuous archiving docsDecision path from requirements to database choice
The diagram starts with your existing database skills and the platform rules your organization must follow. The first hand-off checks whether a supported engine fits those rules. PostgreSQL is the route when no other constraint applies. MySQL needs READ COMMITTED isolation, and Redmine 6.1 added support for the Trilogy adapter. SQL Server 2012 or higher is a separate branch. SQLite stops at multi-user production use, so it belongs only in tests. Whichever engine you choose, confirm its backup tooling before installation.
Engine selection path from existing skills and platform rules to backup tooling.
How to set up the chosen database for Redmine
This sequence takes a database choice from a confirmed Redmine release to a tested connection and backup, so the database is ready for Redmine's first production migration.
Confirm the Redmine line and runtime
Confirm which Redmine release you will deploy and check its supported Ruby and database versions in the installation guide. Redmine 7.0.x is the fully supported line, and the 7.0 release runs on Rails 8.1 with Ruby 3.2, 3.3, 3.4 or 4.0, and does not support JRuby. Your team lead or platform owner signs off on the version pair. Done when the Redmine version, Ruby version and database engine are written down together in your change record.
Select a supported database version
Choose a PostgreSQL major version or a MySQL 8.0 to 8.4 release from the lines that are still supported, and check the vendor's end-of-support date against your planned operating life. For PostgreSQL, the versioning policy lists supported majors, and the current list starts with 14 and runs through 18. For MySQL, confirm the release track and that the version is in the range Redmine supports. Done when the database version and its end-of-support date are recorded and the database team has agreed to it.
Create the database and application role
Create an empty database and a dedicated login role owned by the Redmine application, using the database server's admin tools. Give that role rights only on its own database, and set a strong password stored in your secrets manager rather than in a shared file. For MySQL, create the database with a utf8mb4 character set so that multilingual issue text is stored correctly. Done when a login with the new role succeeds from the Redmine host and fails against other databases.
Set MySQL isolation to READ COMMITTED
If you chose MySQL, set the server's transaction isolation level to READ COMMITTED, which Redmine requires, either in the server configuration file or for the session as the installation guide describes. Confirm the exact configuration key for your MySQL version in the installation guide and your server's documentation before editing production files. PostgreSQL does not need this step. Done when a query against the server reports READ COMMITTED for a new session and the setting survives a server restart.
Select the database adapter
Edit the Redmine database configuration to name the adapter that matches your engine: postgresql for PostgreSQL, or mysql2 or trilogy for MySQL. Trilogy is supported from Redmine 6.1.0 onward, so confirm that your release includes it before choosing it. Keep the host, port, database name and role credentials in the environment or secrets store, not in the committed configuration. Done when the configuration file loads without error in a Rails console and reports the expected adapter.
Run the database migration
From the Redmine application directory, run the database migration task that the installation guide specifies for a new installation, then load default data when you are ready. The migration creates Redmine's tables in the empty database. Watch the output for errors about character sets, isolation or permissions, since these are the most common blockers. Done when the migration finishes without errors and a row count query on a core table, such as projects or users, returns the expected result.
Verify connections and a test backup
Start Redmine, sign in as the administrator, and confirm that creating a test project and issue writes to the database. Then take a test dump with the backup tool for your engine, pg_dump for PostgreSQL or mysqldump for MySQL, and restore it into a scratch database to confirm it is complete. Record the restore result with the Redmine version and database version. Done when the test restore succeeds and a row count matches the source, which proves the backup path works before live data arrives.
Backup tooling for PostgreSQL and MySQL
Whichever engine you choose, the backup plan has to cover the database and Redmine's uploaded files together, because the upgrade procedure in the Redmine upgrade guide calls for a database backup and a copy of the uploads before db:migrate and redmine:plugins:migrate run. For PostgreSQL, the tooling is built into the server: continuous archiving with point-in-time recovery lets you restore to a moment just before a bad change, while pg_dumpall suits full logical copies taken before a major version upgrade. If many application processes or Sidekiq workers open connections, a pooler such as PgBouncer reduces the connection count the database has to hold, which matters more for backup timing than for the backups themselves.
For MySQL, the Community Edition gives you logical dumps and replication, but its hot backup tooling is limited. MySQL Enterprise Edition adds Enterprise Backup for hot backups under a paid subscription. Confirm with your vendor whether a logical dump of your Redmine schema, taken with Redmine's READ COMMITTED setting in place, is acceptable for your recovery window, or whether you need a physical hot backup. Ask for the license and support terms in writing before you commit to either path.
A backup that has never been restored is an assumption. Schedule a restore into a separate instance at least once before go-live and after each major change, then start Redmine against the restored database and files and check that issues, attachments and logins work. Record how long the restore took, because that number is what your recovery plan actually depends on. Whichever engine you run, keep the restore procedure, the matching files directory and the Redmine version together in one place so a rebuild does not depend on one person's memory.
Security and operational considerations for each engine
Both engines can hold Redmine's issues, users and time entries securely, but the controls come from different places. PostgreSQL leans on its authentication methods and external tooling, while MySQL Community Edition and Enterprise Edition differ on encryption, auditing and firewall features. The cards below cover what to check on each side before the database goes live.
PostgreSQL authentication methods
PostgreSQL supports password, GSSAPI, SSPI, LDAP, RADIUS, certificate, PAM and OAuth authentication. For Redmine, the database role should use SCRAM password authentication, since MD5 password authentication is deprecated in favor of SCRAM in PostgreSQL 18. Confirm in pg_hba.conf which methods each Redmine host may use, and restrict the Redmine role to the database it needs.
Client certificates and LDAP options
Certificate authentication lets the Redmine host prove its identity to PostgreSQL without a shared password, and LDAP lets the database check credentials against your directory. Each adds a dependency on the certificate authority or directory service being available during restarts and upgrades. Ask your DBA which option fits your identity model, and test a full Redmine restart with the chosen method before go-live.
MySQL Enterprise security features
MySQL Enterprise Edition adds Transparent Data Encryption, Enterprise Audit and Enterprise Firewall, along with external authentication modules and 24x7 Oracle support. These are paid features, so the choice depends on whether your security policy requires encryption at rest or audit trails at the database layer. Ask Oracle or your reseller for the current licensing terms and confirm which controls your compliance scope needs.
MySQL Enterprise detailsMySQL Community security controls
MySQL Community Edition is free under the GPL, but encryption at rest, audit logging and hot backups are not part of that edition as described in the supplied facts. Plan equivalent controls with your storage platform, host-level audit tooling and a backup method that does not depend on Enterprise Backup. Document which controls you built yourself, since reviewers will ask how each one is operated.
Keeping database credentials out of config files
Redmine reads database settings from config/database.yml, and the official Docker image supports _FILE variants for secrets. Whichever engine you choose, keep the password out of plain files that are copied into backups or repositories. Store it in a secrets manager or a root-readable file, restrict file permissions to the Redmine service account, and rotate the password when staff with access change.
Patching on each engine's release cadence
PostgreSQL releases minor versions at least once every three months and supports each major version for five years. MySQL LTS releases follow a separate Oracle support policy, and Innovation releases are supported only until the next Innovation release. Schedule minor updates on the cadence each engine publishes, and check that your chosen major version is still supported, for example PostgreSQL 14 is supported until November 12, 2026.
- Minor release cadence
- 3 months
Questions teams ask before choosing a Redmine database
Which database is cheaper to run for Redmine?
Neither engine carries a license fee for Redmine's purposes, because Redmine itself is free under GPL v2 and PostgreSQL and MySQL Community Edition are both freely downloadable. The running cost comes from hosting, backups, patching and the people who maintain the database. Ask which engine your platform team already operates well, since an engine your staff know is usually cheaper to support than a new one. Commercial MySQL Enterprise Edition adds features such as Enterprise Backup and 24x7 Oracle support, so price it separately if your policy requires vendor support. Ask any partner to quote hosting, implementation and maintenance as separate lines.
How much effort does a migration between database engines take?
Effort depends on data volume, attachment handling, custom plugins and how much downtime the business accepts. Redmine's own upgrade guide centers on backing up the database and uploaded files, copying configuration and plugins, then running the migrations, so a cross-engine move needs a deliberate data transfer step on top of that. Plan a rehearsal on a copy of production, compare row counts and issue history after each run, and confirm that every plugin supports the target engine. Switching engines later is possible but rarely small, so settle the choice before go-live if you can.
Can our team set up Redmine's database without outside help?
Yes, if your team already runs PostgreSQL or MySQL in production and has someone who handles backups, restores and upgrades. The harder parts are sizing the server, configuring the MySQL transaction isolation level, choosing a backup tool and rehearsing a restore. Outside help is most useful for a fixed-scope review of those decisions, a tested backup and restore runbook, or a rollout across several environments. Whatever you choose, agree the scope and deliverables in writing before work starts so you can compare quotes on the same basis.
What does the work need from our team?
Expect to provide a named technical owner, access to the target hosts or cloud accounts, a decision on the database version and backup retention, and someone who can approve maintenance windows. Your database administrators should review the schema settings, network access and credentials. Your application owners should confirm which plugins, custom fields and integrations depend on the engine. Ask any provider which of these items they expect from you, and what they will hand back, such as configuration, runbooks and restore test records.
Is PostgreSQL or MySQL better for high availability?
Both engines support replication, but the fit depends on your operating model. PostgreSQL offers hot standby servers that serve read-only queries, plus synchronous and asynchronous replication, while PostgreSQL itself does not detect a failed primary, so automatic failover needs external tools. MySQL Community Edition includes Group Replication with automated failover, MySQL Router and MySQL Shell. Whichever you choose, test failover with Redmine running, confirm the application reconnects, and check that attachment storage is also highly available, because the database alone does not protect uploaded files.
Is SQLite acceptable for a small Redmine pilot?
SQLite can run a short evaluation, but the Redmine installation guide says it is not suited to multi-user production use. A pilot that more than a few people will rely on should use PostgreSQL or MySQL from the start, so the test reflects the production setup. Using the same engine in the pilot also avoids a later migration. If you must use SQLite for a throwaway trial, keep it isolated, say so in the project record, and do not load real personal data or confidential issues into it.
Which MySQL version and settings must we use with Redmine?
Redmine supports MySQL 8.0 to 8.4 with transaction isolation set to READ COMMITTED, so confirm that setting on the server before installing. Redmine 6.1.0 added support for the Trilogy MySQL-compatible adapter, so check the adapter your Redmine version expects. Choose a MySQL release line deliberately: LTS releases receive long-term support, while Innovation releases are supported only until the next Innovation release. Confirm the current support dates with Oracle's policy before you commit.
How DeployOpen scopes Redmine database decisions
DeployOpen starts with the database decision because it shapes the Redmine install, the backup tooling and the operations runbook that follow. We record the target PostgreSQL or MySQL version, the MySQL isolation and adapter settings, and the high availability and backup requirements your team must meet before any build begins.
How we scope
- Engagements are fixed-scope, with the database engine, version and hosting model agreed in writing before work starts.
- The written scope records the Redmine release line, the chosen database, and any MySQL READ COMMITTED or Trilogy adapter settings.
- Scope lists which backup, replication and failover tools are in or out, so ongoing responsibilities are explicit.
- Your quote follows from the written scope, and you should ask for each database-related line item to be itemized.
How we build
- We stand up the chosen database in your infrastructure and verify the Redmine connection, migrations and isolation settings.
- We test backup and restore for the database and the files directory together, recording the restore steps your team will repeat.
- We check the database version against the vendor support windows and confirm the upgrade path before go-live.
- Build work covers the components agreed in scope, and changes to the database choice after the build starts are handled as scope changes.
How we hand over
- You receive written documentation of the database version, configuration keys, backup schedule and restore procedure.
- Handover includes a runbook for database upgrades that follows the Redmine upgrade guide and the engine's own upgrade documentation.
- We walk your platform and database administrators through restore testing so the procedure is known before an incident.
- Documentation covers which settings must stay fixed across Redmine upgrades, such as the MySQL isolation level.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after handover.
- A retainer can cover scheduled database minor updates, Redmine release reviews and periodic restore tests.
- Major database upgrades and high availability changes are scoped separately so their cost and timing are agreed in advance.
- Ask for the support boundary in writing, including who owns the database host, the backups and the Redmine application.

