O'Reilly logo

Mastering Ubuntu Server by Jay LaCroix

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Installing MariaDB

Now we've come to the fun part, installing MariaDB. To get the ball rolling, we'll install the mariadb-server package:

# apt-get install mariadb-server

If your organization prefers to stick with MySQL, the package to install is mysql-server instead:

# apt-get install mysql-server

Note

I don't recommend switching from MariaDB to MySQL (or vice versa) on the same server. I've seen some very strange configuration issues occur on servers that had one installed and then were switched to the other (even after wiping the configuration). For the most part, it's best to pick one and stick with it. As a general rule, MySQL should only be used if you have legacy databases to support. For brand-new installations, go with MariaDB.

Going forward, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required