Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Databases»How to Install MariaDB 5.5 in Ubuntu 14.04 & 12.04 LTS

    How to Install MariaDB 5.5 in Ubuntu 14.04 & 12.04 LTS

    RahulBy RahulJanuary 19, 20142 Mins Read

    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

    mariadb-banner

    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.

    mariadb-install-1

    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
    
    install mariadb mariadb MySQL setup mariadb
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Reset MariaDB root Password in Linux
    Next Article How to Install Services SSL Certificates in WHM & cPanel

    Related Posts

    How To Install Linux, Nginx, MySQL, & PHP (LEMP Stack) on Ubuntu 22.04

    Updated:April 7, 20227 Mins Read

    How To Install MySQL Server on Ubuntu 22.04

    Updated:April 6, 20224 Mins Read

    How To Install LAMP Stack on Ubuntu 22.04 LTS

    Updated:April 20, 20225 Mins Read

    How To Install MariaDB on Debian 11

    4 Mins Read

    How to Install Redis on Debian 11 Linux

    Updated:September 16, 20213 Mins Read

    How To Install and Secure MongoDB on Ubuntu 20.04

    Updated:September 7, 20214 Mins Read

    3 Comments

    1. Chris on October 16, 2014 5:40 am

      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

      Reply
      • Rahul on October 17, 2014 2:51 am

        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.

        Reply
    2. Swirl on March 15, 2014 6:29 pm

      thanks a lot – it helped – I succeeded
      used only windows til today…

      regards
      swirl

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    • (Resolved) Please install all available updates for your release before upgrading
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.