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

A brief discussion on the correct posture of Tomcat memory configuration

1. Background Although I have read many blogs or ...

Detailed explanation of Nginx's control over access volume

Purpose Understand the Nginx ngx_http_limit_conn_...

MySQL series: Basic concepts of MySQL relational database

Table of contents 1. Basic Concepts 2. Developmen...

MySQL grouping queries and aggregate functions

Overview I believe we often encounter such scenar...

Mysql queries the transactions being executed and how to wait for locks

Use navicat to test and learn: First use set auto...

mysql5.7 installation and configuration tutorial under Centos7.3

This article shares the MySQL 5.7 installation an...

The core process of nodejs processing tcp connection

A few days ago, I exchanged some knowledge about ...

Border-radius IE8 compatible processing method

According to canisue (http://caniuse.com/#search=...

How to change the mysql password on the Xampp server (with pictures)

Today, I found out while working on PHP that if w...

A brief introduction to JavaScript arrays

Table of contents Introduction to Arrays Array li...

Nginx reverse proxy and load balancing practice

Reverse Proxy Reverse proxy refers to receiving t...