Close Menu
Technoracle
    Facebook X (Twitter) Instagram
    Facebook X (Twitter) Instagram
    TechnoracleTechnoracle
    • Home
    • AWS
      • EC2
      • Lightsail
      • RDS
      • S3
    • Ubuntu
      • Ubuntu 20.04
      • Ubuntu 22.04
    • AI Tools
    • Web Hosting
    • WordPress
    • Tech News
    Technoracle
    Home - Uncategorized - How to Install MariaDB on Ubuntu 20.04 Quickly
    Uncategorized

    How to Install MariaDB on Ubuntu 20.04 Quickly

    Rajesh ShivamBy Rajesh ShivamMay 28, 2021No Comments2 Mins Read
    Install MariaDB on Ubuntu

    MariaDB is an open-source database management system and replacement of MySQL. You can use MariaDB on LAMP installation, instead of MySQL. In this tutorial, I am going to explain how to install MariaDB on Ubuntu step-by-step.

    So, Let’s get started.

    Page Contents

    Toggle
    • Install MariaDB on Ubuntu 20.04
      • Prerequisites
      • Installation steps of MariaDB
        • Step 1: Install MariaDB
        • Step 2: Configure MariaDB
        • Step 3: Connect MariaDB from the command line
      • Conclusion

    Install MariaDB on Ubuntu 20.04

    Prerequisites

    • Ubuntu 20.04 with non root administrative access.
    • Firewall configured with UFW(Uncomplicated Firewall).

    Installation steps of MariaDB

    Follow the below steps to install MariaDB on Ubuntu 20.04, configure MariaDB, user create, etc.

    Step 1: Install MariaDB

    Update the Ubuntu packages index first.

    $ sudo apt update

    Then install MariaDB by following command.

    $ sudo apt install mariadb-server

    To, make sure the database management system(MariaDB) installed correctly, run following command.

    $ sudo systemctl status mariadb

    Output should be something like this.

    Install MariaDB on Ubuntu 20.04

    Step 2: Configure MariaDB

    Now, run MySQL secure installation to tighten the security of the MariaDB. Also, you can set root password and remove anonymous user.

    $ sudo mysql_secure_installation

    Step 3: Connect MariaDB from the command line

    Now, connect MariaDB from command line using following command to create, modify, drop databases.

    $ mysql -u root -p

    Read Also, How to import and export MySQL databases.

    Conclusion

    In this tutorial, you have learned to install MariaDB on Ubuntu 20.04. If you have any doubt, feel free to comment below. Also, you can join our elite Facebook group to get direct help from me. If you like this article, please share this article on your social media handle.

    Install MariaDB on Ubuntu mysql tutorial ubuntu tips
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit
    Previous ArticleHow to Import and Export MySQL Databases Quickly (Easy Guide)
    Next Article How to Run Shell Script in Linux Terminal Easily
    Rajesh Shivam
    • LinkedIn

    Rajesh Shivam is a seasoned professional with expertise in AWS and Linux System Administration. With over 10 years of freelancing experience, he brings a wealth of knowledge to the table. Rajesh has a strong passion for technology and stays connected with the latest happenings in the field. His dedication and expertise make him a trusted resource for all things tech-related.

    Related Posts

    linux commands every user should know in 2025
    Ubuntu 24.04

    25 Must-Know Linux Commands Every User Should Master in 2025

    Read More
    Blog banner showing Ubuntu logo, coding laptop, and icons for VS Code, Docker, and Git with the title 'Perfect Dev Setup in Ubuntu 24.04 – Step-by-step guide for developers' on a dark tech-themed background.
    Ubuntu

    How to Set Up the Perfect Development Environment on Ubuntu 24.04

    Read More
    Uncategorized

    How to Get your First Order On Fiverr in 2024 – 5 Proven tricks

    Read More
    Add A Comment
    Leave A Reply Cancel Reply

    linux commands every user should know in 2025

    25 Must-Know Linux Commands Every User Should Master in 2025

    April 10, 2025
    TeamViewer and Ubuntu logos on gradient background – banner for how to install TeamViewer on Ubuntu 24.04 tutorial

    How to Install TeamViewer on Ubuntu 24.04 [Fast & Easy Steps]

    April 10, 2025
    Troubleshooting ‘Permission Denied (publickey)’ SSH error on a Linux server using secure terminal access

    Fix ‘Permission Denied (publickey)’ SSH Error on Linux [Step-by-Step Guide]

    April 8, 2025
    Blog banner showing Ubuntu logo, coding laptop, and icons for VS Code, Docker, and Git with the title 'Perfect Dev Setup in Ubuntu 24.04 – Step-by-step guide for developers' on a dark tech-themed background.

    How to Set Up the Perfect Development Environment on Ubuntu 24.04

    April 8, 2025

    Subscribe to Blog

    Enter your email address to subscribe to
    this blog and receive notifications of new posts by email.

    Facebook X (Twitter) Instagram Pinterest
    • Sitemap
    • Privacy Policy
    • Disclaimer
    • Term of Services
    © 2025 Technoracle

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

    Click to Copy