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
How to use if in Linux to determine whether a dir...
LocalStorage stores Boolean values Today, when I ...
For Linux system administrators, it is crucial to...
How to use the code in NetEase Blog: First log in...
Use vue to simply implement a click flip effect f...
Many friends who have just started to make web pag...
This tutorial shares the detailed steps of instal...
Dig Introduction: Dig is a tool that queries DNS ...
0. Environment Operating system for this article:...
Tabs: Category + Description Tag bar: Category =&...
Note: It is recommended that the virtual machine ...
Memo: Just experience it. Record: NO.209 This exa...
The warning points in this article have nothing t...
This article shares the specific code for WeChat ...
Prerequisite: nginx needs to have the ngx_http_li...