暗中观察

CentOS 安装 mysql
一、Mysql下载(yum)地址: https://dev.mysql.com/downloads/repo/yu...
扫描右侧二维码阅读全文
10
2018/08

CentOS 安装 mysql

一、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

centos-mysql-install.jpg

四、注意事项

4.1 调整服务器时区

tzselect

4.2 调整数据库时区

#vim /etc/my.cnf
[mysqld]
default-time-zone=Asia/Kolkata
#default-time-zone=+5:30
Last modification:December 11th, 2023 at 03:21 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment