How to install MariaDB on a Linux system?
To install MariaDB on a Linux system, you can follow these steps:
- Open the terminal and type the following command to update the software package list:
sudo apt update
- Install the MariaDB server and client software packages.
sudo apt install mariadb-server mariadb-client
- After the installation is complete, start the MariaDB service and configure it to start automatically on boot.
sudo systemctl start mariadb
sudo systemctl enable mariadb
- Execute security scripts to strengthen the installation of MariaDB.
sudo mysql_secure_installation
Set a password as per the prompts, delete the test database, and prohibit remote root login.
- Login to the MariaDB database using the following command:
sudo mysql -u root -p
- After entering the password, you can access the MariaDB database management system to create databases, users, and perform data operations.
These are the simple steps for installing MariaDB on a Linux system. I hope it helps you.