Helping customers to debug database, set up a test environment, after centos7 minimize installation, on-line installation mysql.
step:
1、
wget -i http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
2、
yum -y install mysql57-community-release-el7-10.noarch.rpm
3、yum -y install mysql-community-server
yum -y install mysql-community-server
Wherein Step 3 is connected to the foreign image because, giant slow, and sometimes less than 1K / sec.
But when you install again through observation, we found that the smallest * common * files are not downloaded again, then checked, yum download cache file path:
/var/cache/yum/x86_64/7/mysql57-community/packages/
Final Solution:
1, from the domestic mirrored download the corresponding rpm file, uploaded by sFTP to the server, and then re-run
yum -y install mysql-community-server
2, domestic mirror sites:
http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/
http://uni.mirrors.163.com/mysql/Downloads/