mysql踩坑
1.安装过程:
1.1 在MySQL官网中下载YUM源rpm安装包:
http://dev.mysql.com/downloads/repo/yum/
5.7选择这个 https://dev.mysql.com/downloads/mysql/5.7.html#downloads
1.2 下载mysql源安装包
shell> wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm
1.3 安装mysql源
shell> yum localinstall mysql57-community-release-el7-8.noarch.rpm
1.4 安装MySQL服务器
yum -y install mysql-community-server
1.5 启动MySQL服务
systemctl start mysqld
1.6 开机启动
shell> systemctl enable mysqld
shell> systemctl daemon-reload
1.7 修改root本地登录密码
mysql安装完成之后,在/var/log/mysqld.log文件中给root生成了一个默认密码。通过