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!