https://dev.MysqL.com/doc/MysqL-yum-repo-quick-guide/en/
在centos上面安装MysqL server 5.6
在/etc/yum.repo.d目录下建立一个文件 :
# Enable to use MysqL 5.6 [MysqL56-community] name=MysqL 5.6 Community Server baseurl=http://repo.MysqL.com/yum/MysqL-5.6-community/el/6/$basearch/ enabled=1 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-MysqL
然后运行:
sudo yum install MysqL-community-server
修改密码,root先登录后:SET PASSWORD = PASSWORD('mypass');