Step1 将rpm包下载到本地
需要下载两个包:用于提供服务的server和用于客户端展示的client.
cd /user/tools wget http://dev.MysqL.com/Downloads/MysqL-5.6/MysqL-server-5.6.21-1.rhel5.x86_64.rpm wget http://dev.MysqL.com/Downloads/MysqL-5.6/MysqL-client-5.6.21-1.rhel5.x86_64.rpm
Step2 安装rpm包
rpm -ivh MysqL-server-5.6.21-1.rhel5.x86_64.rpm rpm -ivh MysqL-client-5.6.21-1.rhel5.x86_64.rpm
Step3 启动MysqL
systemctl start MysqL
Step4 登录MysqL
查看MysqL初始密码
cd cat .MysqL_secret
登录MysqL,执行命令后输入.MysqL_secret中的密码
MysqL -uroot -p
Step5 修改MysqL密码
SET PASSWORD = PASSWORD('geekzhou.com');原文链接:https://www.f2er.com/centos/378782.html