Centos 7 integrates mariadb, and when installing mysql, it will conflict with mariadb files, and an error similar to the following figure will be reported.
solution:
Uninstall mariadb first, then install mysql.
rpm -qa|grep mariadb
rpm -e --nodeps xxx