How to install MariaDB on a Linux system?

To install MariaDB on a Linux system, you can follow these steps:

  1. Open the terminal and type the following command to update the software package list:
sudo apt update
  1. Install the MariaDB server and client software packages.
sudo apt install mariadb-server mariadb-client
  1. 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
  1. 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.

  1. Login to the MariaDB database using the following command:
sudo mysql -u root -p
  1. 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.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds