when entering the command
~]# systemctl start mysql.service
To start the MySQL database is this prompt
Failed to start mysqld.service: Unit not found
The solution is as follows:
First you need to install mariadb-server
~]# yum install -y mariadb-server
start the service
~]# systemctl start mariadb.service
add to boot
~]# systemctl enable mariadb.service
Make some security settings, and change the database administrator password
~]# mysql_sceure_installation
That's it!
can test
~]# mysql -u root -p