Linux MYSQL-5.7.23-rpm安装(附带安装包)

系统环境

  • OS 版本(Linux) CentOS-7-x86_64-Minimal-1511
  • Java版本 jdk1.7及以上

卸载系统自带mariadb-lib

shell 复制代码
rpm -qa|grep mariadb
shell 复制代码
rpm -e mariadb-libs-5.5.68-1.el7.x86_64  --nodeps

解压tar包

shell 复制代码
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

依次执行

shell 复制代码
rpm -ivh mysql-community-common-5.7.23-1.el7.x86_64.rpm
shell 复制代码
rpm -ivh mysql-community-libs-5.7.23-1.el7.x86_64.rpm
shell 复制代码
rpm -ivh mysql-community-client-5.7.23-1.el7.x86_64.rpm
shell 复制代码
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

shell 复制代码
rpm -ivh mysql-community-devel-5.7.23-1.el7.x86_64.rpm

启动

shell 复制代码
systemctl start mysqld

密码修改

查看初始密码

shell 复制代码
grep 'temporary password' /var/log/mysqld.log

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

shell 复制代码
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;

设置开机启动

shell 复制代码
systemctl enable mysqld
systemctl daemon-reload

安装包下载

链接 提取:7g3k

相关推荐
RestCloud2 小时前
跨境数据传输:ETL如何处理时区与日期格式差异
mysql·api
少妇的美梦4 小时前
logstash教程
运维
chen9455 小时前
k8s集群部署vector日志采集器
运维
chen9455 小时前
aws ec2部署harbor,使用s3存储
运维
得物技术6 小时前
MySQL单表为何别超2000万行?揭秘B+树与16KB页的生死博弈|得物技术
数据库·后端·mysql
xiaok7 小时前
mysql中怎么创建一个可控权限数据库账号密码给到开发者
mysql
轻松Ai享生活9 小时前
5 节课深入学习Linux Cgroups
linux
christine-rr10 小时前
linux常用命令(4)——压缩命令
linux·服务器·redis
ByteBlossom10 小时前
MySQL 面试场景题之如何处理 BLOB 和CLOB 数据类型?
数据库·mysql·面试
玉衡子10 小时前
九、MySQL配置参数优化总结
java·mysql