Installing MariaDB 10.1 in Debian Jessie and Running Various MariaDB Queries

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Use our Hosting referral link if you planning to start your blog ($3.82/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

8 Responses

  1. gibbonyang says:

    vi /etc/apt/sources.list, add the following two lines:

    deb http://mariadb.biz.net.id//repo/10.1/debian jessie main
    deb-src http://mariadb.biz.net.id//repo/10.1/debian jessie main

    • Aritra Kundu says:

      You know right adding repo in Debian based distro can wreck it, it wasn’t meant to add repo in it .

  2. gibbonyang says:

    add-apt-repository ‘deb http://mariadb.biz.net.id//repo/10.1/debian jessie main’
    —— it works for me:
    Accept this solution? [Y/n/q/?] n
    The following actions will resolve these dependencies:

    Install the following packages:
    1) galera-3 [25.3.19-jessie ()]
    2) libmariadbclient18 [10.1.20+maria-1~jessie ()]
    3) libmysqlclient18 [10.1.20+maria-1~jessie ()]
    4) mariadb-client-core-10.1 [10.1.20+maria-1~jessie ()]
    5) mariadb-server-core-10.1 [10.1.20+maria-1~jessie ()]

    Keep the following packages at their current version:
    6) mariadb-client [Not Installed]
    7) mariadb-client-10.1 [Not Installed]
    8) mariadb-server [Not Installed]
    9) mariadb-server-10.1 [Not Installed]

  3. Brus says:

    Followed above process to install MariaDB in raspberry pi(OS Debian Jessie) after,

    # apt-get install mariadb-server mariadb-client
    

    I checked mysql -v and mysql --version but gives error mysql: command not found

  4. Krzysztof says:

    In this line: “# add-apt-repository ‘deb http://mariadb.biz.net.id//repo/10.1/debian sid main'” there should be “jessie” not “sid”
    Sid makes dependencies errors trying to install mariadb-server and mariadb-client with apt-get.

    • Ravi Saive says:

      Krzy,

      Thanks for a tip, but to verify it have you tried in Jessie? If yes, could you share the screenshot where Sid makes dependencies errors while installing MariaDB?

      • Krzysztof says:

        Unfortunately I can’t give you screenshots because it’s a past now. I was installing mariadb on Debian 8 for my client and apt-get refused to install mariadb because there were not compatible version of packets. Apt-get displayed only that those missing/bad version packets couldn’t be installed. Searching for this errors gave me links with resolving different, newer in Linux distribution than in mariadb repo, issues. This gave me a clue, that maybe changing “sid” to “jessie” in apt-get’s sources.list will be a resolution and I’ve had right. After that installation went without problems.

        • Ravi Saive says:

          @Kzyho,

          Thanks for detailed information, let me give a try on Debian 8 and see whether it still gives the same error and force me to change from sid to jessie, will update you my findings..

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 257,757
  2. 11,967
  3. 39,682

Are you subscribed?