Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

martinszeltins's avatar

Should I use MySQL or MariaDB?

I'm confused which one is better. I know that MariaDB is a fork of MySQL but what does the Laravel community use? Is MariaDB better or more modern? Which one would you recommend and why?

0 likes
10 replies
jlrdw's avatar

They are the same. Even in Java the same connector works with Mysql and MariaDB, the JDBC Driver for MySQL.

To add, for a larger Enterprise setup you would want MySQL. But for most things people are going to do in laravel there is really no significant difference. Innodb the same.

However I would suggest you read the specs of both for yourself.

Tray2's avatar

They are basically the same. The only difference is MySQL 8 has Oracle written all over it.

sr57's avatar

Use postgresql :-) , more reliable and performant.

martinszeltins's avatar

More performant? I was reading the opposite that MySQL was faster.

sr57's avatar

Personally I use Postgresql mainly for reliability, 0 data lost in 20 years, in case of "crash of the server", it'll be more difficult to retrieve your data with mariadb

Please or to participate in this conversation.