Skip to content

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.

15 points21 comments
Open on Reddit
About this post
Posted
Archived
Score
15 · 90% up
Kind
Text
ID
jrixkk

Author

2
posts
21
comments
0
media
View profile

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.

22 points

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?

1 points

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.

8 points

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.

6 points

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?

1 points

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.

5 points

Happened in a small project of mine. It worked fine, however note that there are some commands that are specific to mariadb.

1 points

I believe percona-server is more close to MySQL. Since you care about compatibility I think it might be a better choice than MariaDB.

2 points

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.

2 points

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?

1 points

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.

Like what I said in OP, this happens when I tried installing mysql aur 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.

1 points

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.

1 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.