Difference between MySQL and MariaDB?
I'm trying to install MySQL earlier and I just noticed that Arch dropped MySQL since 2013 but I still tried installing thru AUR but I can't since the PKGBUILD making me install MariaDB or Percona Server and it's in-conflict with MySQL. I really don't the know difference between MySQL and MariaDB, however from quick research MariaDB don't really have that much difference in MySQL and its actually a drop in replacement for it. But is it though? I'm not sure. The company I OJT for need mysql and I just started, so I having this dilemma if I ever gonna have an issues for using MariaDB.
About this post
- Posted
- Archived
- Score
- 15 · 90% up
- Kind
- Text
- ID
- jrixkk
22 comments
Hi, MariaDB is maintained and developed by the company of one of the two original creators of the database, Monty Oum, before they sold it to Oracle. He wasn't happy with how Oracle broke the promise to always run MySQL as an open source community project, no surprise there.
As it has already been pointed out MariaDB has evolved independently and in several aspects it has more tecnical evolution and more features than the database owned by Oracle.
If you want a full clone of MySQL, minus the onus of having to pay a license for doing commercial development in it, use PerconaDB. It is 100% compatible.
Thanks for the info. But how to install it tho? I tried installing it with Percona but still in-conflict. I did `yay -Sa mysql` , is that right?
Replace it. As other poster suggested, if you must use MySQL, use it in a container (Docker, Vagrant, Rocket, LXC, systemd-nspawn or whatever you choose) or in a VM. Off the top of my head, I'd say that you would have better luck trying to run MySQL on CentOS with upstream binaries from Oracle.
Mariadb is basically the community supported version, they're might be a few minor differences but hardly any, if there are. If you really want MySQL though you'll probably have to get it from Oracle.
Then my question is, If I use mariaDB then my other workmates use Mysql, Is that possible? Im not really sure since I haven't really develop using mysql. But what do you mean I have to get it from oracle?
It should be fine, though now I'm left asking why aren't you getting a copy of MySQL like your coworkers are. Oracle owns MySQL so if you want an official copy you probably have to get it from them.
Happened in a small project of mine. It worked fine, however note that there are some commands that are specific to mariadb.
A solution for running MySQL is to use docker. https://hub.docker.com/_/mysql
Thanks. I'll look into it.
I believe
percona-serveris more close to MySQL. Since you care about compatibility I think it might be a better choice than MariaDB.I'm a full stack developer. I'm using mariadb for drupal/symfony development while my colleagues are using mysql (as a part of MAMP) and the production servers run debian/ubuntu + mysql.
From my experience, you never notice the differences between the 2 DBMS in question when using some CMS like Drupal or wordpress, even when you have to run some custom queries in your custom functionality module, the SQL generated by query builders never fails to run on mariadb.
However I have had some bad experiences with symfony. The SQL generated for migrations on mysql and Maria db was a bit different for some fancy newish fields of type JSON. I think mysql and mariadb have some different implementations for it. That caused the infitite loop of migration creation where I was able to create migrations over and over with the same queries for the same field, because it thought the field configuration in db was different.
Anyway that was fixed by specifying the db version in .env. Not 100% sure how that works, but it adjusted the SQL for those fields.
Also they have different lists of reserved words. Especially with mysql 8.0.2+ or something they added a shit ton of new reserved words. So be careful when creating fields named 'rank' for example.
So you can use it for real work, but if you have some CIA, NATO or NASA level projects and don't want your production deployment script to fail and you don't want or don't have the opportunity to test on preproduction, i would install mysql.
You've mentioned twice now that you're getting an error message about conflicting packages. This makes me think there's something else going on here. Can you post the entire error message you're getting, so we can see what exactly it is that's causing the install to fail?
Like what I said in OP, this happens when I tried installing
mysqlaur package, either the maria-db clients or percona-server, so ofc it will be in-conflict with mysql. Is there a way to ignore those? So I can just install the mysql only.What I'm trying to say is that it shouldn't tell you it's in conflict unless you already have mysql installed.
Do you already have mysql installed? If so, then of course installing the same thing again is going to conflict. If not, then there's something else going on.
If you could copy and paste the exact error message you get, it could help us identify whats going on.
Deleted before we saved it.
In my opinion, postgresql is better than Mariadb.