Home>Article>Operation and Maintenance> What to do if MariaDB fails to start in CentOS

What to do if MariaDB fails to start in CentOS

angryTom
angryTom Original
2020-03-20 13:24:49 3885browse

What to do if MariaDB fails to start in CentOS

What to do if MariaDB fails to start in CentOS

During the installation of the lamp server, the service startup failure occurs after installing the MariaDB database. The solution : Uninstall and then install!

1. Uninstall the database:

[root@localhost logs]# yum -y remove mari*

2. Delete the database file:

[root@localhost logs]# rm -rf /var/lib/mysql/*

3. Install the database (using remi source):

yum –enablerepo=remi install mariadb mariadb-server

Recommended learning :CentOS usage tutorial

The above is the detailed content of What to do if MariaDB fails to start in CentOS. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn