by tomschlick · 12y ago · 0 comments
MariaDB is essentially a drop in replacement; its also faster than MySQL:
https://mariadb.com/kb/en/moving-from-mysql/
https://mariadb.com/kb/en/mariadb-vs-mysql-compatibility/
"For all practical purposes, MariaDB is a binary drop in replacement of the same MySQL version (for example MySQL 5.1 -> MariaDB 5.1, MariaDB 5.2 & MariaDB 5.3 are compatible. MySQL 5.5 will be compatible with MariaDB 5.5)."
"This means that for most cases, you can just uninstall MySQL and install MariaDB and you are good to go. (No need to convert any datafiles if you use same main version, like 5.1). You must however still run mysql_upgrade to finish the upgrade. This is needed to ensure that your mysql privilege and event tables are updated with the new fields MariaDB uses."
I have heard this is not true for high core count scale up type systems. Has anyone here done that kind of testing?
"With this release, MariaDB 10.0 is now the current stable version of MariaDB. It is an evolution of the MariaDB 5.5 series with several entirely new features not found anywhere else and with backported and reimplemented features from MySQL 5.6."
I want to say yes, but as always, TEST FIRST.
# cat /etc/apt/preferences
Package: *
Pin: origin repo.percona.com
Pin-Priority: 1003
Package: *
Pin: origin ftp.osuosl.org
Pin-Priority: 1002
# tail /etc/apt/sources.list
deb ftp://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise main
deb-src ftp://ftp.osuosl.org/pub/mariadb/repo/5.5/ubuntu precise mainThis simple command replaces mysql in one shot? I might test it tonight if so. Do I have to run mysql_upgrade?
Got a good recommendation for a guide?
https://downloads.mariadb.org/mariadb/repositories/#mirror=o...
Just pick your distro and you're good to go. I didn't have to run anything else.
I, however, am a postgres guy now. Our last MySQL project was retired a few months ago.
Postgres is still my preference for a RDBMS. Schemas, Triggers, JSON, Geo, PL, robust data types, it just offers so much more then MySQL/innoDB/MyISAM.
You can give each tenant his own schema, that way you can even make some nice split-testing when you incorporate new features in your app requiring changes in you database. Once a fraction of your tenants have tested/approved (much better if they choose themself to take part of a beta) the new model, you are good for rolling out progressively a full implementation to all of your tenants.