MariaDB ia an enhanced, drop-in replacement for MySQL. MariaDB can be an better choice for choice for database professionals looking for a robust, scalable, and reliable SQL server. MariaDB has a number of updated features over MySQL. Use below links to read features comparison between MariaDB and MySQL
This article will help you to install MariaDB 5.5 in Ubuntu 14.04 LTS and 12.04 LTS and Other Systems using apt-get package manager.
Step 1: Add MariaDB Apt-get Repositories
First we need to add MariaDB apt-get repository in our system. Before adding repository make sure you have required package install and also add apt-get key for Mariadb repository using following command
$ sudo apt-get install software-properties-common $ sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
Now use one of followings option as per your Ubuntu version
For Ubuntu 14.04 “trusty”
$ sudo add-apt-repository 'deb http://ftp.kaist.ac.kr/mariadb/repo/5.5/ubuntu trusty main'
For Ubuntu 12.04 LTS “precise”
$ sudo add-apt-repository 'deb http://ftp.kaist.ac.kr/mariadb/repo/5.5/ubuntu precise main'
For Older Ubuntu Versions
If you are using older version of Ubuntu. Click here to find suitable repository for your system.
Step 2: Install MariaDB in Ubuntu
After adding repository in your system and use following commands to install MariaDB on your system.
$ sudo apt-get update $ sudo apt-get install mariadb-server
While installing MariaDB using above command installer will prompt for MariaDB root account password twice like below snapshot.
Step 3: Login To MariaDB
After completing installation you can connect to MariaDB using following command.
# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with ; or g. Your MariaDB connection id is 35 Server version: 5.5.34-MariaDB-1~precise-log mariadb.org binary distribution Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. MariaDB [(none)]>
Step 4: Start/Stop MariaDB Service
Some times we need to stop or start MariaDB service. Use the following commands to stop/stop it.
$ sudo /etc/init.d/mysql stop $ sudo /etc/init.d/mysql start
3 Comments
Fails. You seem to have broken your servers – there is no “raring” folder anymore.
W: Failed to fetch 404 Not Found
W: Failed to fetch 404 Not Found
Hi Chris,
Ubuntu raring has reached there end of life, that why mariadb has removed there support them this version. I have updated this article.
thanks a lot – it helped – I succeeded
used only windows til today…
regards
swirl