Delete the previously installed mariadb 1. Use rpm -qa | grep mariadb to search for the existing MariaDB package: If it exists, use [root@localhost ~]# rpm -qa | grep mariadb mariadb-server-5.5.52-1.el7.x86_64 mariadb-libs-5.5.52-1.el7.x86_64 [root@localhost ~]# rpm -e mysql-* Error: Package mysql-* not installed 2. Use rpm -qa | grep mariadb to search for the existing MariaDB package: If it exists, use
Installation command: Copy the code as follows: yum -y install mariadb mariadb-server Start command: Copy the code as follows: systemctl start mariadb Add startup Copy the code as follows: systemctl enable mariadb Simple configuration Copy the code as follows: mysql_secure_installation Enter command line mode mysql -uroot -p Problems encountered Host is not allowed to connect to this MySQL server MySQL does not allow remote login, so remote login fails. The solution is as follows:
Summarize The above is the method and problems encountered in installing mariadb under centos under mysql introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! You may also be interested in:
|
<<: Docker Basic Tutorial: Detailed Explanation of Dockerfile Syntax
>>: How to use Webstorm and Chrome to debug Vue projects
1. Installation and use First, install it in your...
The CentOS Project, a 100% compatible rebuild of ...
Without further ado, let's get straight to th...
Contemporary web visual design has gone through th...
Table of contents 1. Bootstrap Grid Layout 2. Ver...
In the vertical direction, you can set the cell a...
In actual development or production environments,...
The growth path from a Linux novice to a Linux ma...
Table of contents Configure node.js+nvm+npm npm s...
This article shares the specific code of a simple...
/****************** * Advanced character device d...
The MySQL development team officially released th...
Table of contents need: Problems encountered: sol...
Table of contents 1. Introduction 2. Use axios in...
XML/HTML CodeCopy content to clipboard < butto...