1. Configure Yum Alibaba Cloud Source

Since CentOS officially abandoned the maintenance and update of CentOS 6.x, all updates and packages have been removed

  1. Backup
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
  1. Get Alibaba Cloud CentOS 6 source
wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-6.repo
  1. Non-Alibaba Cloud server configuration
sed -i -e'/mirrors.cloud.aliyuncs.com/d' -e'/mirrors.aliyuncs.com/d' /etc/yum.repos.d/CentOS-Base.repo

sed -i's/http/https/g' /etc/yum.repos.d/CentOS-Base.repo
  1. Adjust the version configuration
sed -i's/$releasever/6.8/g' /etc/yum.repos.d/CentOS-Base.repo

sed -i's/centos/centos-vault/g' /etc/yum.repos.d/CentOS-Base.repo
  1. Clear the cache and update the cache
yum clean all && yum makecache

image.png

2. Install Mysql 5.6

wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm
yum localinstall mysql-community-release-el6-5.noarch.rpm
yum-config-manager --disable mysql57-community
yum-config-manager --disable mysql55-community
yum-config-manager --enable mysql56-community
yum -y install yum-utils
yum install mysql-community-server
service mysqld start

Initialization password

mysql_secure_installation
点赞(0)

评论列表 共有 0 评论

暂无评论

微信服务号

微信客服

淘宝店铺

support@elephdev.com

发表
评论
Go
顶部