How to change the database to MySQL when deploying WordPress?
Resolved
BLBrian LinFREE5/13/2026
I want to change the WordPress database to MySQL.
2 Replies
BCBohan ChenEMPLOYEE5/13/2026
Hello,
The MariaDB currently used by your WordPress project is a fully compatible replacement for MySQL—WordPress officially lists MariaDB as a supported database. There are no differences in functionality or syntax, so there is no need to switch.
If you have a specific reason to use MySQL instead of MariaDB:
Add a MySQL service to your project via Template.
Export data from the existing MariaDB using mysqldump.
Import it into the new MySQL service.
Update the environment variables of the WordPress service to point the database connection to the new MySQL.
After confirming that WordPress is working properly, delete the MariaDB service.
However, unless you have a specific requirement, it is recommended to keep the current MariaDB.
AAnonymous5/17/2026
This post has been inactive for a while. We will be closing it in 2 days if there is no new activity.