MySQL-8.3.0 innovation 创新版本YUM安装配置
MySQL-8.3.0 innovation版本已发布了,想抢先体验一下最新的功能,可以用以下的方式快速在虚拟机上安装一下哈
服务器环境:
[root@node213 ~]# cat /etc/redhat-release
CentOS Linux release 7.9.2009 (Core)
[root@node213 ~]# uname -a
Linux node213 3.10.0-1160.el7.x86_64 #1 SMP Mon Oct 19 16:18:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
1.先安装yum-utils工具:
[root@node213 ~]#yum install yum-utils
2.先到官网下载yum安装文件
mysql80-community-release-el7-11.noarch.rpm
[root@node213 ~]#wget https://dev.mysql.com/get/mysql80-community-release-el7-11.noarch.rpm
3.安装YUM文件
[root@node213 yum.repos.d]# rpm -ivh ./mysql80-community-release-el7-11.noarch.rpm
4.修改仓库的开关状态:
开启mysql-innovation-community仓库,关闭mysql80-community仓库
[root@node213 yum.repos.d]#yum-config-manager --disable mysql80-community
[root@node213 yum.repos.d]#yum-config-manager --enable mysql-innovation-community
5.安装mysql-8.3.0最新创新版本:
[root@node213 yum.repos.d]# yum install mysql-community-server
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.aliyun.com
* epel: mirror.01link.hk
* extras: mirrors.aliyun.com
* updates: mirrors.ustc.edu.cn
mysql-connectors-community | 2.6 kB 00:00:00
mysql-innovation-community | 2.6 kB 00:00:00
mysql-tools-community | 2.6 kB 00:00:00
正在解决依赖关系
--> 正在检查事务
---> 软件包 mysql-community-server.x86_64.0.8.3.0-1.el7 将被 安装
--> 正在处理依赖关系 mysql-community-common(x86-64) = 8.3.0-1.el7,它被软件包 mysql-community-server-8.3.0-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-icu-data-files = 8.3.0-1.el7,它被软件包 mysql-community-server-8.3.0-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-client(x86-64) >= 8.0.11,它被软件包 mysql-community-server-8.3.0-1.el7.x86_64 需要
--> 正在检查事务
---> 软件包 mysql-community-client.x86_64.0.8.3.0-1.el7 将被 安装
--> 正在处理依赖关系 mysql-community-client-plugins = 8.3.0-1.el7,它被软件包 mysql-community-client-8.3.0-1.el7.x86_64 需要
--> 正在处理依赖关系 mysql-community-libs(x86-64) >= 8.0.11,它被软件包 mysql-community-client-8.3.0-1.el7.x86_64 需要
---> 软件包 mysql-community-common.x86_64.0.8.3.0-1.el7 将被 安装
---> 软件包 mysql-community-icu-data-files.x86_64.0.8.3.0-1.el7 将被 安装
--> 正在检查事务
---> 软件包 mariadb-libs.x86_64.1.5.5.68-1.el7 将被 取代
--> 正在处理依赖关系 libmysqlclient.so.18()(64bit),它被软件包 2:postfix-2.10.1-9.el7.x86_64 需要
--> 正在处理依赖关系 libmysqlclient.so.18(libmysqlclient_18)(64bit),它被软件包 2:postfix-2.10.1-9.el7.x86_64 需要
---> 软件包 mysql-community-client-plugins.x86_64.0.8.3.0-1.el7 将被 安装
---> 软件包 mysql-community-libs.x86_64.0.8.3.0-1.el7 将被 舍弃
--> 正在检查事务
---> 软件包 mysql-community-libs-compat.x86_64.0.8.3.0-1.el7 将被 舍弃
--> 解决依赖关系完成
依赖关系解决
==================================================================================================================
Package 架构 版本 源 大小
==================================================================================================================
正在安装:
mysql-community-libs x86_64 8.3.0-1.el7 mysql-innovation-community 1.5 M
替换 mariadb-libs.x86_64 1:5.5.68-1.el7
mysql-community-libs-compat x86_64 8.3.0-1.el7 mysql-innovation-community 670 k
替换 mariadb-libs.x86_64 1:5.5.68-1.el7
mysql-community-server x86_64 8.3.0-1.el7 mysql-innovation-community 65 M
为依赖而安装:
mysql-community-client x86_64 8.3.0-1.el7 mysql-innovation-community 16 M
mysql-community-client-plugins x86_64 8.3.0-1.el7 mysql-innovation-community 3.5 M
mysql-community-common x86_64 8.3.0-1.el7 mysql-innovation-community 682 k
mysql-community-icu-data-files x86_64 8.3.0-1.el7 mysql-innovation-community 2.2 M
事务概要
==================================================================================================================
安装 3 软件包 (+4 依赖软件包)
总下载量:90 M
Is this ok [y/d/N]: y
Downloading packages:
警告:/var/cache/yum/x86_64/7/mysql-innovation-community/packages/mysql-community-client-plugins-8.3.0-1.el7.x86_64.rpm: 头V4 RSA/SHA256 Signature, 密钥 ID a8d3785c: NOKEY
mysql-community-client-plugins-8.3.0-1.el7.x86_64.rpm 的公钥尚未安装
(1/7): mysql-community-client-plugins-8.3.0-1.el7.x86_64.rpm | 3.5 MB 00:00:11
(2/7): mysql-community-common-8.3.0-1.el7.x86_64.rpm | 682 kB 00:00:02
(3/7): mysql-community-icu-data-files-8.3.0-1.el7.x86_64.rpm | 2.2 MB 00:00:07
(4/7): mysql-community-libs-8.3.0-1.el7.x86_64.rpm | 1.5 MB 00:00:04
(5/7): mysql-community-libs-compat-8.3.0-1.el7.x86_64.rpm | 670 kB 00:00:02
(6/7): mysql-community-client-8.3.0-1.el7.x86_64.rpm | 16 MB 00:00:45
(7/7): mysql-community-server-8.3.0-1.el7.x86_64.rpm | 65 MB 00:04:37
------------------------------------------------------------------------------------------------------------------
总计 300 kB/s | 90 MB 00:05:06
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2023 检索密钥
导入 GPG key 0xA8D3785C:
用户ID : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
指纹 : bca4 3417 c3b4 85dd 128e c6d4 b7b3 b788 a8d3 785c
软件包 : mysql80-community-release-el7-11.noarch (installed)
来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2023
是否继续?[y/N]:y
从 file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022 检索密钥
导入 GPG key 0x3A79BD29:
用户ID : "MySQL Release Engineering <mysql-build@oss.oracle.com>"
指纹 : 859b e8d7 c586 f538 430b 19c2 467b 942d 3a79 bd29
软件包 : mysql80-community-release-el7-11.noarch (installed)
来自 : /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql-2022
是否继续?[y/N]:y
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
正在安装 : mysql-community-common-8.3.0-1.el7.x86_64 1/8
正在安装 : mysql-community-client-plugins-8.3.0-1.el7.x86_64 2/8
正在安装 : mysql-community-libs-8.3.0-1.el7.x86_64 3/8
正在安装 : mysql-community-client-8.3.0-1.el7.x86_64 4/8
正在安装 : mysql-community-icu-data-files-8.3.0-1.el7.x86_64 5/8
正在安装 : mysql-community-server-8.3.0-1.el7.x86_64 6/8
正在安装 : mysql-community-libs-compat-8.3.0-1.el7.x86_64 7/8
正在删除 : 1:mariadb-libs-5.5.68-1.el7.x86_64 8/8
验证中 : mysql-community-client-plugins-8.3.0-1.el7.x86_64 1/8
验证中 : mysql-community-common-8.3.0-1.el7.x86_64 2/8
验证中 : mysql-community-icu-data-files-8.3.0-1.el7.x86_64 3/8
验证中 : mysql-community-libs-8.3.0-1.el7.x86_64 4/8
验证中 : mysql-community-client-8.3.0-1.el7.x86_64 5/8
验证中 : mysql-community-libs-compat-8.3.0-1.el7.x86_64 6/8
验证中 : mysql-community-server-8.3.0-1.el7.x86_64 7/8
验证中 : 1:mariadb-libs-5.5.68-1.el7.x86_64 8/8
已安装:
mysql-community-libs.x86_64 0:8.3.0-1.el7 mysql-community-libs-compat.x86_64 0:8.3.0-1.el7
mysql-community-server.x86_64 0:8.3.0-1.el7
作为依赖被安装:
mysql-community-client.x86_64 0:8.3.0-1.el7 mysql-community-client-plugins.x86_64 0:8.3.0-1.el7
mysql-community-common.x86_64 0:8.3.0-1.el7 mysql-community-icu-data-files.x86_64 0:8.3.0-1.el7
替代:
mariadb-libs.x86_64 1:5.5.68-1.el7
完毕!
5.启动MySQL数据库服务:
[root@node213 ~]# systemctl start mysqld
6.查看MySQL数据库生成的临时root登录密码:
[root@node213 ~]# cat /var/log/mysqld.log | grep password
2024-01-22T01:48:55.593788Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: /4Zm_4ljMyxj
7.通过临时密码登录数据库:
临时密码为:/4Zm_4ljMyxj
[root@node213 ~]# mysql -uroot -p'/4Zm_4ljMyxj' -hlocalhost
mysql: [Warning] Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.3.0
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
8.登录数据库后,要修改root密码:
mysql> alter user root@localhost identified by 'Rscpass123_';
9.查看数据库的版本:
mysql> select version();
+-----------+
| version() |
+-----------+
| 8.3.0 |
+-----------+
1 row in set (0.01 sec)
mysql> \s
--------------
mysql Ver 8.3.0 for Linux on x86_64 (MySQL Community Server - GPL)
Connection id: 8
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 8.3.0
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: utf8mb4
Db characterset: utf8mb4
Client characterset: utf8mb4
Conn. characterset: utf8mb4
UNIX socket: /var/lib/mysql/mysql.sock
Binary data as: Hexadecimal
Uptime: 3 min 4 sec
Threads: 2 Questions: 8 Slow queries: 0 Opens: 130 Flush tables: 3 Open tables: 46 Queries per second avg: 0.043
--------------
10.如果想免密登录数据库,可以在my.cnf文件中这样配置:
在my.cnf文件最后面添加以下行:
[mysql]
user=root
password=Rscpass123_
保存后就可以直接通过mysql登录数据库了,不需要重启哈
[root@node213 ~]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.3.0 MySQL Community Server - GPL
Copyright (c) 2000, 2024, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
这种方法对于测试环境还是很有用哈,在8.0之后,有个操作系统验证的插件,可以实现一样的功能,这个下次再分享哈
至此,MySQL-8.3.0最新创新版本安装配置完成,8.3.0版本也有很多新功能哦,一起体验一下哈。。。
作者:阮胜昌 MySQL 8.0 OCP、Oracle 11G OCP,人大金仓KCP PostgreSQL PCA,Oceanbase OBCA、PingCAP PCTA、软考中级数据库系统工程师、RHCE7.0、cisco CCNA认证
擅长主流数据库MySQL、Oracle、PostgreSQL运维与开发、数据恢复、安装配置、数据迁移、集群容灾、SQL性能优化、高可用架构设计、故障应急处理等
可提供技术业务:
1.DB故障处理/疑难杂症远程支援
2.Mysql/PG/Oracle/SQLSERVER数据库技术服务
欢迎关注我的博客:http://www.linuxmysql.com 第一时间一起学习新知识!
MySQL-8.3.0 innovation 创新版本YUM安装配置的更多相关文章
- 分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置(单点安装)——第一篇
分布式文件系统 FastDFS 5.0.5 & Linux CentOS 7 安装配置(单点安装)--第一篇 简介 首先简单了解一下基础概念,FastDFS是一个开源的轻量级分布式文件系统,由 ...
- centOS下yum安装配置samba
centOS下yum安装配置samba 2010-03-29 15:46:00 标签:samba yum centOS 安装 休闲 注意:本文的原则是只将文件共享应用于内网服务器,并让将要被共享的目 ...
- 基于【CentOS-7+ Ambari 2.7.0 + HDP 3.0】搭建HAWQ数据仓库——安装配置NTP服务,保证集群时间保持同步
一.所有节点上使用yum安装配置NTP服务yum install ntp -y 二.选定一台节点作为NTP server, 192.168.58.11修改/etc/ntp.conf vim /etc/ ...
- centos7: svbversion版本的安装配置+tortoisesvn登录验证
centos7: svbversion版本的安装配置+tortoisesvn登录验证 命令工具:svnadmin create #创建版本库 hotcopy #版本库热备份 Islocks #打印所有 ...
- centos7 yum安装配置redis 并设置密码
原文:https://www.cnblogs.com/fanlinglong/p/6635828.html centos7 yum安装配置redis 并设置密码 1.设置Redis的仓库地址 yum ...
- IIS5.1、IIS6.0、IIS7.5中安装配置MVC 3
本文主要介绍在IIS5.1.IIS6.0.IIS7.5中安装配置MVC 3的具体办法! 正文: IIS5.1 1. 安装Microsoft .net FrameWork 4.0安装包; 2. 安装AS ...
- Linux下的python3,virtualenv,Mysql、nginx、redis等常用服务安装配置
Linux下的python3,virtualenv,Mysql.nginx.redis等常用服务安装配置 学了前面的Linux基础,想必童鞋们是不是更感兴趣了?接下来就学习常用服务部署吧! 安装环 ...
- Linux 下安装Nginx两种方法- yum安装 and Centos7下yum安装配置nginx与php
转载csdn: Linux 下安装Nginx两种方法- yum安装_在电脑前深思的博客-CSDN博客 Linux安装Nginx(两种方式)_HHRunning的博客-CSDN博客_linux 是否安装 ...
- CentOS 6.5 yum安装配置lnmp服务器(Nginx+PHP+MySQL)
以下全部转载于 http://blog.csdn.net/lane_l/article/details/20235909 本人于今晚按照该文章使用centos 6.7 64bit安装成功,做个备份, ...
- mysql80版本—yum安装—图文全过程
这是官网的Quick Giude:https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/ 以下为自己安装的步骤: 第一步:下载.rpm安装包 ...
随机推荐
- 最常用集合 - arraylist详解
ArrayList介绍 ArrayList实现了List接口,是顺序容器,即元素存放的数据与放进去的顺序相同,允许放入null元素,底层通过数组实现.除该类未实现同步外,其余跟Vector大致相同.每 ...
- docker高级篇1-dockeran安装mysql主从复制
大家好,咱们前面通过十篇的文章介绍了docker的基础篇,从本篇开始,咱们的<docker学习系列>将要进入到高级篇阶段(基础篇大家可以查看之前发布的文章). 咱们先来介绍:docker复 ...
- 【工程应用十二】Bayer图像格式中Hamilton-Adams及Zhang Wu 基于LMMSS算法的Demosaic过程优化。
Demosaic,中文直接发翻译为去马赛克, 但是其本质上并不是去除马赛克,这让很多第一次接触这个名词或者概念的人总会想的更多.因此,一般传感器在采集信息时一个位置只采集RGB颜色中的一个通道,这样可 ...
- docker 修改容器内容后更新镜像的流程
在 Docker 中,如果你修改了一个容器的内容并希望将这些更改保存为一个新的镜像,可以按照以下步骤进行: docker version: 26.1 1. 确保容器运行 首先,确保你正在修改的容器是运 ...
- SpringMVC —— RESTful入门
RESTful入门案例 1.设定http请求动作(动词) @RequestMapping(value = "/users",method = RequestMethod.POS ...
- Cookie——基本使用
Cookie 基本使用 Cookie 原理 Cookie 使用细节 Cookie jsp中获取Cookie
- About CSP
好了,猜猜今年第一题会考什么 linux 终端指令 这样吧 CTH 装了 ubuntu 系统的电脑被人施加了 rm -rf /home/Desktop/ 指令,导致他打不开桌面了,以下哪一个是 CTH ...
- USB协议详解第5讲(USB描述符-接口描述符)
1.USB描述符 USB描述符有设备描述符.标准配置描述符.接口描述符.端点描述符.字符串描述符,HID设备有HID描述符.报告描述符和物理描述符.今天主要是学习USB接口描述符的组成. 2.接口描述 ...
- 使用c++ onnxruntime构建项目出现的bug
bug1:The given version [11] is not supported, only version 1 to 7 is supported in this build. 应该是加载了 ...
- 2022年11月中国数据库排行榜:GaussDB获认证进前五,GBase得融资竞逐鹿
击石乃有火,不击元无烟. 2022年11月的 墨天轮中国数据库流行度排行榜 火热出炉,本月共有246个数据库参与排名,相比上月新增1个数据库.由于国庆节长假,数据库整体热度指数有所降低,所以出现了多数 ...