Mysql

关注公众号 jb51net

关闭
首页 > 数据库 > Mysql > mysql5.7.23 rpm安装

Linux MYSQL5.7.23 rpm安装(附带安装包)教程

作者:一码归一码@

RPM是一种软件包管理系统,常用于基于Red Hat的Linux发行版,如Fedora和CentOS,它允许用户通过预编译的二进制包快速安装和管理软件,这篇文章给大家介绍Linux mysql5.7.23 rpm安装(附带安装包)教程,感兴趣的朋友一起看看吧

系统环境

卸载系统自带mariadb-lib

rpm -qa|grep mariadb

rpm -e mariadb-libs-5.5.68-1.el7.x86_64  --nodeps

解压tar包

tar -xvf mysql*.tar

以下加粗rpm包需要安装:
mysql-community-common-5.7.23-1.el7.x86_64.rpm
mysql-community-libs-compat-5.7.23-1.el7.x86_64.rpm
mysql-community-minimal-debuginfo-5.7.23-1.el7.x86_64.rpm
mysql-community-server-5.7.23-1.el7.x86_64.rpm
mysql-community-devel-5.7.23-1.el7.x86_64.rpm
mysql-community-libs-5.7.23-1.el7.x86_64.rpm
mysql-community-client-5.7.23-1.el7.x86_64.rpm

mysql-community-server-minimal-5.7.23-1.el7.x86_64.rpm
mysql-community-test-5.7.23-1.el7.x86_64.rpm
mysql-community-embedded-devel-5.7.23-1.el7.x86_64.rpm
mysql-community-embedded-5.7.23-1.el7.x86_64.rpm
mysql-community-embedded-compat-5.7.23-1.el7.x86_64.rpm

安装mysql

依次执行

rpm -ivh mysql-community-common-5.7.23-1.el7.x86_64.rpm

rpm -ivh mysql-community-libs-5.7.23-1.el7.x86_64.rpm

rpm -ivh mysql-community-client-5.7.23-1.el7.x86_64.rpm

rpm -ivh mysql-community-server-5.7.23-1.el7.x86_64.rpm

执行以server rpm包报错 运行 yum list libaio 安装环境
完成之后就可以顺利安装mysql-community-server-5.7.23-1.el7.x86_64.rpm

rpm -ivh mysql-community-devel-5.7.23-1.el7.x86_64.rpm

启动

systemctl start mysqld

密码修改

查看初始密码

grep 'temporary password' /var/log/mysqld.log

密码为root@localhost: ?kp*******

mysql -uroot -p
#策略要求
set global validate_password_policy=0;
#密码长度
set global validate_password_length=4;
set password=password('123456');
grant all on *.* to root@'%' identified by '123456' with grant option;
flush privileges;

设置开机启动

systemctl enable mysqld
systemctl daemon-reload

安装包下载

链接: https://pan.baidu.com/s/1j8jqk5VQNJpU31DqZhRI6Q

提取码: s2as

到此这篇关于Linux MYSQL-5.7.23-rpm安装(附带安装包)的文章就介绍到这了,更多相关mysql5.7.23 rpm安装内容请搜索脚本之家以前的文章或继续浏览下面的相关文章希望大家以后多多支持脚本之家!

您可能感兴趣的文章:
阅读全文