Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.
  1. First of all open terminal and type this

    sudo apt-get install python-software-properties

I recommend you to use MariaDB version 10.0.4 Alpha because when im installed it i've got no errors compare with 5.5 version.

2: Put this commands in terminal

sudo apt-get install software-properties-common

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db

sudo add-apt-repository 'deb http://download.nus.edu.sg/mirror/mariadb/repo/10.0/ubuntu quantal main'

If you're using other version please change the "quantal" to your ubuntu version codename

eg : 13.10 saucy
     13.04 raring
     12.10 quantal (im using this version)
     12.04 precise`

3: Type in this commands

sudo apt-get update
sudo apt-get install mariadb-server

4: after finished installed mariadb you need to run this

sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation

If have problem consider look at the end of this post for solution

5: You're done!!

Problems solving

In step 3 if you get problem, like unmet dependencies, Go to /etc/apt/preferences.d then create new file called "mariadb" Then,Consider to put the below code in the mariadb file that you just created

Package: *
Pin: origin <mirror-domain>
Pin-Priority: 1000

In step 4 you may get 2 errors

  1. first occur when you run sudo mysql_install_db Solution : open another terminal and do this killall mysqld

    2.second eror may occur when you running sudo /usr/bin/mysql_secure_installationcommand

Solution :

try doing this

cd /etc/init.d and try run ./mysqld start
if ./mysqld doesnt exists use ./mysql start as in my case

That's All Thank you for reading.

I wrote this based on my experience installing this.Any errors you get community here can help you if i cant..tq

.

share|improve this question
    
Hi and welcome to Ask Ubuntu. Thank you for this helpful and informative post. I would like to point out to you Ask Ubuntu is a Q&A site and hence, posting a guide is not suitable for our format. However, you can frame it as a question and answer and help others. Meaning that, you should have a real question in the question section and the answer should go to the answer section. Thanks again! –  jokerdino Oct 25 '13 at 18:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.