1. First check if MySQL is already present in the machine
$ RPM-QA | grep MySQL
2. Go to the official website to download the corresponding RPM package: https://dev.mysql.com/downloads/mysql/
mysql-community-common-5.7.19-1.el6.x86_64.rpm
mysql-community-client-5.7.19-1.el6.x86_64.rpm
mysql-community-server-5.7.19-1.el6.x86_64.rpm
mysql-community-libs-5.7.19-1.el6.x86_64.rpm
3. Upload to the/usr/local/src folder to install MySQL
# Install in the following order because there are dependencies between them common-----libs----and server
$ rpm-ivh mysql-community-common-5.7.19-1.el6.x86_64.rpm$ RPM-IVH mysql-community-libs-5.7.19-1.el6.x86_64.rpm$ rpm -IVH mysql-community-clients-5.7.19-1.el6.x86_64.rpm$ RPM-IVH mysql-community-server-5.7.19-1.el6.x86_64.rpm
!!! The error that occurred here
# error:failed dependencies: libnuma.so.1 () (64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64 Libnuma.so.1 (libnuma_1.1) (64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64 libnuma.so.1 (libnuma_ 1.2) (64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64 workaround: $ yum install-y numactl
4. After installation, you can check if there is a MySQL configuration file or MySQL command under/usr/bin
#mysql配置文件 $ ls/etc/my.cnf# mysql command $ cd/usr/bin/$ ls | grep MySQL
MySQL three ways to install--RPM package installation