CentOS7.5安装MySQL5.7
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CentOS7.5安装MySQL5.7相关的知识,希望对你有一定的参考价值。
安装mysql源:
yum -y localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
安装mysql-5.7:
yum -y install mysql-community-server mysql-community-devel
启动mysql:
systemctl start mysqld
systemctl enable mysqld
查看mysql的随机密码:
grep ‘temporary password‘ /var/log/mysqld.log
进入mysql更改密码:
mysql -uroot -p‘eZa?x2q;&;l%‘
set global validate_password_policy=0;
set global validate_password_length=1;
ALTER USER ‘root‘@‘localhost‘ IDENTIFIED BY ‘redhat‘;
以上是关于CentOS7.5安装MySQL5.7的主要内容,如果未能解决你的问题,请参考以下文章
Salt之CentOS7.5使用RPM包安装MySQL5.7.22
CentOS7.5 yum 安装与配置MySQL5.7.24
现代Java服务端开发核心技术之CentOS7.5安装MySQL5.7
Centos7.5安装mysql5.7.24二进制包方式部署