一、Mysql下载(yum)
地址: https://dev.mysql.com/downloads/repo/yum/
wget https://repo.mysql.com//mysql57-community-release-el6-11.noarch.rpm
二、Mysql安装
a.安装repo
yum localinstall mysql57-community-release-el6-11.noarch.rpm
b.启用相应版本
vi /etc/yum.repos.d/mysql-community.repo
c.执行安装命令
yum install mysql-community-server
三、Mysql配置
3.1查找root密码
cat /var/log/mysqld.log
四、注意事项
4.1 调整服务器时区
tzselect
4.2 调整数据库时区
#vim /etc/my.cnf
[mysqld]
default-time-zone=Asia/Kolkata
#default-time-zone=+5:30
版权属于:sunjianhua
本文链接:https://sunjianhua.cn/archives/centos-mysql.html
转载时须注明出处及本声明,如果不小心侵犯了您的权益,请联系邮箱:NTA2MTkzNjQ1QHFxLmNvbQ==