Categories: Ubuntu

Install MariaDB on Ubuntu 22.04

MariaDB is an open-source relational database management server. It was released in 2009 and was developed by the makers of MySQL. Because of this, it is very easy to migrate from MySQL to MariaDB and vice versa. In this guide, we will share the process of installing MariaDB on Ubuntu 22.04 system.

Process of Installing MariaDB on Ubuntu 22.04

To install MariaDB on the Ubuntu 22.04 system, you have to follow the procedure mentioned below:

Step # 1: Update the System’s Cache

First, you need to update your system’s cache with the command that follows:

$
Sponsored
sudo apt-get update

Step # 2: Install the MariaDB Server on Ubuntu 22.04

After that, you can install the MariaDB server on your Ubuntu 22.04 system by running the following command:

$ sudo apt-get install mariadb-server

Step # 3: Verify Status of the MariaDB Server on Ubuntu 22.04

Once the MariaDB server has been installed successfully on your system, you can verify its status with the following command:

$ sudo systemctl status mariadb

The status of the MariaDB server on our system is active and running, as shown in the following image:

Sponsored

Step # 4: Confirm Version of the MariaDB Server on Ubuntu 22.04

You can further confirm the version of the MariaDB server installed on your system by running the following command:

$ mariadb –version

This command will display the version of the MariaDB server installed on your Ubuntu 22.04 system, as shown in the following image:

How To Remove MariaDB From Ubuntu 22.04

If you wish to remove the MariaDB server from your system, then you will need to run the following command:

$ sudo apt-get purge –autoremove mariadb-server

Conclusion

This article taught you the complete procedure for installing the MariaDB server on your Ubuntu 22.04 system. Apart from that, we also shared with you the command with which you can easily uninstall this server from your system whenever you want.

Ubuntu Server Admin

Recent Posts

Canonical Releases Ubuntu 25.04 Plucky Puffin

The latest interim release of Ubuntu introduces “devpacks” for popular frameworks like Spring, along with…

2 days ago

Ubuntu 25.04 (Plucky Puffin) Released

Ubuntu 25.04, codenamed “Plucky Puffin”, is here. This release continues Ubuntu’s proud tradition of integrating…

3 days ago

Extended Security Maintenance for Ubuntu 20.04 (Focal Fossa) begins May 29, 2025

Ubuntu released its 20.04 (Focal Fossa) release 5 years ago, on March 23, 2020. As…

3 days ago

Ubuntu 20.04 LTS End Of Life – activate ESM to keep your fleet of devices secure and operational

Focal Fossa will reach the End of Standard Support in May 2025, also known as…

4 days ago

Ubuntu MATE 25.04 Release Notes

Ubuntu MATE 25.04 is ready to soar! 🪽 Celebrating our 10th anniversary as an official…

4 days ago

Ubuntu Weekly Newsletter Issue 887

Welcome to the Ubuntu Weekly Newsletter, Issue 887 for the week of April 6 –…

5 days ago