I’m having so many issues with MySQL 8 on a WordPress site that I’m starting to think on using a different platform.
I’m not a super tech savvy user on database, but I read that MariaDB offers better performance out of the box, so the question is:
Thanks,
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello, @mhweb
Yes you can spin up a new droplet with MariaDB and then just export your database and import it on the new MariaDB droplet. The process is really simple.
You can always upgrade from MySQL to MariaDB. We have a little article on what the process involves:
https://www.digitalocean.com/community/tutorials/switching-to-mariadb-from-mysql
Backup your databases and uninstall MySQL
What you need is to backup all of your databases which you can do with a
mysqldump
command:You can also backup your
/etc/my.cnf
fileStop the MySQL service:
Uninstall the MySql server, associated utilities amd MySql user.
Install MariaDB
You need to add MariaDB repository on your system in order to Install MariaDB.
Finally you want to import the previously exported databases back to MariaDB server as follow
Note: It’s important to backup your databases and the
/etc/my.cnf
file in case something goes wrong with the process, but I will also recommend you to take a snapshot of your droplet before starting the process as in this way you will have an a working copy of your droplet and you can always restore your droplet in case this is needed.The commands for MySQL and MariaDB are the same, there are some small changes but generally you will feel comfortable with the new version.
Both MariaDB and MySQL require knowledge in order to use them, but I can say that MariaDB is not more complicated than MySQL and that both are easy user friendly, but users often stick with MariaDB because it will almost definitely remain open source.
MariaDB stands tall as a more powerful database as compared to MySQL. Because it provides several advanced features which are till now not introduced by MySQL, and are neither supported in its compatible apps. Many users choose MariaDB over MySQL due to MariaDB’s frequent security releases. While this does not necessarily mean MariaDB is more secure, it does indicate the development community takes security seriously.
Hope this helps!
Regards, Alex