How To Install MariaDB in Ubuntu OS

MariaDB Install Ubuntu Techhyme

MariaDB is an open-source relational database management system (RDBMS) that is a fork of the popular MySQL database. It was created as a result of concerns regarding the acquisition of MySQL by Oracle Corporation. The original developers of MySQL, led by Michael “Monty” Widenius, created MariaDB to ensure the continuity and open development of a compatible database system.

MariaDB aims to provide a drop-in replacement for MySQL, meaning it is designed to be functionally compatible with MySQL and can be used as a direct substitute without requiring significant modifications to applications or code. It offers enhanced performance, scalability, and additional features compared to MySQL. MariaDB is widely used in various applications and is supported by a large and active community of developers and contributors.

Installation of MariaDB in Ubuntu

The first step is the execute the “apt update” command which is used to update the package lists of available software packages.

By running this command, your system retrieves the latest information about software updates and new packages from the software repositories configured on your system.

MariaDB Install Ubuntu Techhyme

Now you need to configure the APT package repository by running the following command:

Command: wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup

MariaDB Install Ubuntu Techhyme

Grant the execution privileges by running “chmod +x mariadb_repo_steup

MariaDB Install Ubuntu Techhyme

Run the following repo setup file.

Command: ./mariadb_repo_setup

MariaDB Install Ubuntu Techhyme

As soon as the repo installation completed, run the apt update command again.

MariaDB Install Ubuntu Techhyme

Next step is to install MariaDB Community Server and package dependencies.

Command: apt install mariadb-server mariadb-backup

MariaDB Install Ubuntu Techhyme

Now start the mariadb service by using systemctl command.

Command: systemctl start mariadb

MariaDB Install Ubuntu Techhyme

Once you know that it’s running, you can easily connect to it by using the following command:

Command: mariadb

MariaDB Install Ubuntu Techhyme

You can also enable the mariadb service at startup so next time you reboot the server, the MariaDB service will start automatically.

Command: systemctl enable mariadb

MariaDB Install Ubuntu Techhyme

Thank You

Related Posts

Adding Users in Windows and Linux: A Step-by-Step Guide

Adding users to an operating system is a fundamental administrative task that allows individuals to access and utilize a computer system. Both Windows and Linux offer methods…

File Permissions Linux Techhyme

Understanding Common File Permissions in Linux

File permissions are a fundamental aspect of file management in Unix-based operating systems like Linux. They play a crucial role in determining who can access, modify, or…

Active Connections Kali Linux Techhyme

How To Check Active Connections in Kali Linux

Kali Linux, known for its prowess in cybersecurity and ethical hacking, provides a powerful command-line tool called `netstat` for monitoring active network connections. This tool is indispensable…

Kali linux system information commands techhyme

Top 11 System Information Commands in Kali Linux

In the realm of ethical hacking and penetration testing, the post-exploitation phase is a critical juncture where an attacker seeks to establish and maintain control over a…

Linux System Key Components Techhyme

7 Major Key Components That Make Up A Linux System

Linux, an open-source operating system, has become one of the most widely used platforms due to its stability, security, and flexibility. It is comprised of various components…

File Finding Commands Linux Techhyme

Top 4 File Finding Commands in Linux

In the vast world of Linux, one of the most common tasks is finding files and directories scattered throughout the file system. Fortunately, Linux provides several powerful…

Leave a Reply