How to install MariaDB

September 5, 2013 9.2k views
Can you guys write a tutorial on how to install MariaDB with nginx and Apache? Thanks
1 Answer

Steps to install MariaDb.
1. go to
2. Answer 3 simple questions like Choose a Distro, Choose a Release & Choose a Version
3. it gives you details about the commands to be executed on machine.

I choose ubuntu 13, mariadb 5.5
Here are the commands to run to add MariaDB to your Ubuntu system:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver 0xcbcb082a1bb943db
sudo add-apt-repository 'deb raring main'
Once the key is imported and the repository added you can install MariaDB with:

sudo apt-get update
sudo apt-get install mariadb-server
See Installing MariaDB .deb Files for more information.

You can also create a custom MariaDB sources.list file. To do so, copy and paste the following into a file under /etc/apt/sources.list.d/(we suggest naming the file MariaDB.list or something similar), or add it to the bottom of your /etc/apt/sources.list file.

# MariaDB 5.5 repository list - created 2013-09-05 03:21 UTC
deb raring main
deb-src raring main

Apache and nginx have separate commands on separate distros. which one do you want?
Have another answer? Share your knowledge.