How to install MySQL, MariaDB & MongoDB on Ubuntu ARM server

2022-09-19 By nathan 6990 Views linux arm mysql mariadb mongodb database
7 reviews

A database is the collection of organized data that is structured and stored electronically on a computer system. Databases can store data in the form of tables depending upon the type of database. The database's primary goal is to store a huge amount of data.


Databases are used to store a large number of dynamic websites on the Internet today. Data can then be accessed, managed, updated, regulated, and organized efficiently. For writing and retrieving data, most databases utilize structured query language (SQL).


In this article, we are installing 3 of the many databases available in ARM arch Ubuntu 20.


Installing MySQL


  1. Connect to your server via SSH.

  2. Log in as a root user.

  3. Run the following command to install MySQL.

    # apt-get install mysql-server -y
    

    ARMDB1

  4. Check MySQL status using the below command.

    # systemctl status mysql.service
    

    ARMDB2

  5. Check the MySQL version using the following command.

    # mysql -v
    

    ARMDB3


Installing MariaDB


  1. Connect to your server via SSH.

  2. Log in as a root user.

  3. Run the following command to install MariaDB.

    # apt-get install mariadb-server mariadb-client -y
    

    ARMDB4

  4. Check MariaDB status using the below command.

    # systemctl status mariadb.service
    

    ARMDB5

  5. Check the MariaDB version using the following command.

    # mysql -v
    

    ARMDB6


Installing MongoDB


  1. Connect to your server via SSH.

  2. Log in as a root user.

  3. Run the following command to install MariaDB.

    # apt-get install mongodb -y
    

    ARMDB7

  4. Check MongoDB status using the below command.

    # systemctl status mongodb.service
    

    ARMDB8

  5. Check the MongoDB version using the following command.

    # mongod --version
    

    ARMDB9


Related Tutorials

What do you think about this article?

Rate this article
LayerStack Promotion
Need assistance?

Try this guide to receive free bundled services at signup on a new free account.

Sign Up

Your Feedback Is Important

We hope you’ll give the new products and updates a try. If you have an idea for improving our products or want to vote on other user ideas so they get prioritized, please submit your feedback on our Community platform. And if you have any questions, please feel free to ask in the Community or contact our Technical Support team.