How to install MariaDB on CentOS


MariaDB Server is the MySQL fork developed by MySQL developers, it’s used by large companies from the industry among which are WordPress.org, Google, and Wikipedia. It’s guaranteed that MariaDB Server will stay Open Source. Jumping right onto how to install MariaDB on CentOS!

Specification:

OS Version: CentOs 8.2 x64
MariaDB Version: 10.3.17

Update operating system with following command:

$ sudo yum update

Install MariaDB on CentOS server:

$ sudo yum install mariadb-server

Start the MariaDB database server:

$ sudo systemctl start mariadb

Make sure the service up:

$ sudo systemctl status mariadb
● mariadb.service - MariaDB 10.3 database server
   Loaded: loaded (/usr/lib/systemd/system/mariadb.service; disabled; vendor preset: disabled)
   Active: active (running) since Sun 2020-08-02 11:07:02 UTC; 3s ago
     Docs: man:mysqld(8)
           https://mariadb.com/kb/en/library/systemd/
  Process: 11085 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, status=0/SUCCESS)
  Process: 10950 ExecStartPre=/usr/libexec/mysql-prepare-db-dir mariadb.service (code=exited, status=0/SUCCESS)
  Process: 10926 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
 Main PID: 11053 (mysqld)
   Status: "Taking your SQL requests now..."
    Tasks: 30 (limit: 4946)
   Memory: 83.2M
   CGroup: /system.slice/mariadb.service
           └─11053 /usr/libexec/mysqld --basedir=/usr

Let’s make sure that mariadb service starts automatically when system starts:

bluegrid-edu:~# systemctl enable mariadb

Database is installed, let’s see how to proceed with database users and getting started with MariaDB database:

Share this post

Share this link via

Or copy link