Detailed tutorial on installing MariaDB on CentOS 8

Detailed tutorial on installing MariaDB on CentOS 8

MariaDB database management system is a branch of MySQL, mainly maintained by the open source community and licensed under the GPL. One of the reasons for developing this branch is that after Oracle acquired MySQL, there was a potential risk of closing the source of MySQL, so the community adopted the branch method to avoid this risk. MariaDB is fully compatible with MySQL and the usage is the same.

System environment:

CentOS Linux release 8.1.1911 (Core)

1) Install mariaDB

2) Enable the service. After the installation is complete, you must first start the MariaDB service and set it to start at boot

systemctl start mariadb # Start the service systemctl enable mariadb # Set it to start automatically at boot

3) Initial configuration.

mysql_secure_installation
Enter current password for root (enter for none): # Enter the password of the database super administrator root (note that it is not the password of the system root). If you have not set a password for the first time, just press Enter Set root password? [Y/n] # Set a password, y

New password: # New passwordRe-enter new password: # Re-enter passwordRemove anonymous users? [Y/n] # Remove anonymous users, y

Disallow root login remotely? [Y/n] # Deny root remote login. n. Regardless of y/n, root remote login will be denied. Remove test database and access to it? [Y/n] # Delete the test database. y: delete. n: Do not delete. There will be a test database in the database, which is generally not needed. Reload privilege tables now? [Y/n] # Reload the privilege table, y. Or restart the service maybe

4) Test whether the login is successful.

mysql -u root -p

5) Set MariaDB character set to utf-8

. . . . . .

6) Remotely connect to the mariadb database

Enable remote access permissions

grant all on *.* to user03@'%' identified by '123456' with grant option

Force refresh permissions

flush privileges;

This is the end of this article about the detailed tutorial on how to install MariaDB on CentOS 8. For more information about installing MariaDB on CentOS 8, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed example of installing MariaDB database on Linux
  • Detailed installation and use of MariaDB10.5.6
  • Tutorial on installing MariaDB on Windows 10
  • Analysis of MariaDB database installation and system initialization operations in Window7
  • Tutorial on how to successfully install MariaDB in CentOS 7
  • Detailed steps for quick installation of Mariadb in DeepinV20

<<:  A brief discussion on using Cartesian product principle to query multiple tables in MySQL

>>:  js implements a simple English-Chinese dictionary

Recommend

js to realize payment countdown and return to the home page

Payment countdown to return to the home page case...

CSS selects the first child element under the parent element (:first-child)

Preface I recently used :first-child in a project...

MySQL 8.0.20 installation and configuration tutorial under Win10

MySQL 8.0.20 installation and configuration super...

Example of creating a virtual host based on Apache port

apache: create virtual host based on port Take cr...

Practical tutorial on modifying MySQL character set

Preface: In MySQL, the system supports many chara...

MySQL index usage instructions (single-column index and multi-column index)

1. Single column index Choosing which columns to ...

How to install kibana tokenizer inside docker container

step: 1. Create a new docker-compose.yml file in ...

Example code for implementing a pure CSS pop-up menu using transform

Preface When making a top menu, you will be requi...

js to achieve a simple magnifying glass effect

This article shares the specific code of js to ac...

Use Navicate to connect to MySQL on Alibaba Cloud Server

1. First enter the server's mysql to modify p...

Nginx configures the same domain name to support both http and https access

Nginx is configured with the same domain name, wh...