Centos7 cannot start the problem after mariaDB is installed using yum. centos7mariadb
Centos7's built-in MySQL image has abandoned Oracle's MySQL. Instead, use the MySQL Branch database mariaDB and install mariadb as follows:
[Plain] view plain copy
Yum install mariadb
Run the systemctl start mariadb command, and the prompt is as follows:
[Plain] view plain copy
Failed to start mariadb. service: Unit mariadb. service failed to load: No such file or directory indicates that mariadb cannot be found. The installation of mariadb is not complete. Run the following command to check the dependency of mariadb:
[Html] view plain copy
$ Sudo yum search mariadb:
Run the following to install the missing dependency package:
[Plain] view plain copy
$ Yum install mariadb-embedded mariadb-libs mariadb-sever and then start mariadb. Normal. If you want to set the Automatic startup of mariadb, run the following command:
[Plain] view plain copy
$ Systemctl enable mariadb
To install mysql using the yum install command, add "*" and run the following command:
[Plain] view plain copy
Yum install mariadb *