新奇的 MYSQL 8.4.0

2024年 5月 6日 36.5k 0

MySQL的第一个长期支持版 8.4 GA 。

1.MySQL数据库版本

版本 说明
社区版:
MySQL Community Edition (GPL)
1.企业版的“体验版",未经各个专有系统平台的压力和性能测试
2.基于GPL协议发布,可以随意下载使用
3.没有官方技术支持服务
企业版:
MySQL Enterprise Edition(commercial)
1.提供了比较全面的高级功能、管理工具及技术支持
2.安全性、稳定性、可扩展性比较好
集群版:
MySQL Cluster CGE(commercial)
社区版可使用集群;企业版可使用集群

2.版本命名方式

版本 说明
a (Alpha) 版 内测版,内部交流或者专业测试人员测试用。Bug较多,普通用户最好不要安装。
β(Beta) 版 公测版,专业爱好者大规模测试用,存在一些缺陷,该版本也不适合一般用户安装。
y(Gamma )版 相当成熟的测试版,与即将发行的正式版相差无几。
y(Gamma )版 相当成熟的测试版,与即将发行的正式版相差无几。
Final 正式版本
Free 自由版本
Release 发行版本
Standard 标准版本
Mini 迷你精简版本,只有最基本的功能
Upgrade 升级版本
GA(GenerallyAvailable) 开发团队认为该版本是稳定版,可以在较为关键的场合使用。
Retail 零售版

3.MySQL安装

安装方式 优点 缺点 命名:
rpm安装 卸载简单 可定制性差 RPM版本 :
MySQL-server-5.6.31-1.el7.x86_64.rpm,需要在特定linux版本下安装。
基于glibc安装 可定制性相比rpm包灵活些 安装相比rpm包复杂些,需要手动初始化数据库 基于glibc版本
命名:mysql-5.6.30-linux-glibc2.5-x86_64.tar.gz
依赖 glibc库,可以安装在通用的Linux系统下
源代码编译安装 可定制性最强,根据需求和功能定制 安装麻烦,需要手动初始化数据库 源代码编译安装
命名:mysql-5.6.35.tar.gz,通用的Linux下都可以编译安装。

4.安装

step 1.解压安装包

mysql-8.4.0-1.el9.x86_64.rpm-bundle.tar

查看安装文件

[root@mysql-8 ~]# ll
total 1677124
-rw-------. 1 root root 833 Aug 15 2023 anaconda-ks.cfg
-rw-r--r--. 1 root root 858675200 May 6 08:42 mysql-8.4.0-1.el9.x86_64.rpm-bundle.tar
-rw-r--r--. 1 7155 31415 3202706 Apr 11 03:20 mysql-community-client-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 19866647 Apr 11 03:20 mysql-community-client-debuginfo-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 1498324 Apr 11 03:20 mysql-community-client-plugins-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 2380658 Apr 11 03:20 mysql-community-client-plugins-debuginfo-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 590213 Apr 11 03:20 mysql-community-common-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 6079847 Apr 11 03:21 mysql-community-debuginfo-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 22140332 Apr 11 03:21 mysql-community-debugsource-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 7810937 Apr 11 03:21 mysql-community-devel-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 2383190 Apr 11 03:21 mysql-community-icu-data-files-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 1546205 Apr 11 03:21 mysql-community-libs-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 2281831 Apr 11 03:21 mysql-community-libs-debuginfo-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 52304326 Apr 11 03:22 mysql-community-server-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 24792626 Apr 11 03:22 mysql-community-server-debug-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 159357306 Apr 11 03:22 mysql-community-server-debug-debuginfo-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 193483715 Apr 11 03:22 mysql-community-server-debuginfo-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 337326151 Apr 11 03:23 mysql-community-test-8.4.0-1.el9.x86_64.rpm
-rw-r--r--. 1 7155 31415 21610974 Apr 11 03:23 mysql-community-test-debuginfo-8.4.0-1.el9.x86_64.rpm
[root@mysql-8 ~]#

step 2.执行安装

dnf install -y mysql-community-server-8.4.0-1.el9.x86_64.rpm \
mysql-community-client-8.4.0-1.el9.x86_64.rpm \
mysql-community-client-plugins-8.4.0-1.el9.x86_64.rpm \
mysql-community-common-8.4.0-1.el9.x86_64.rpm \
mysql-community-icu-data-files-8.4.0-1.el9.x86_64.rpm \
mysql-community-libs-8.4.0-1.el9.x86_64.rpm

step 3.初始化数据库

systemctl start mysqld

查看日志

2024-05-06T00:53:05.534359Z 0 [System] [MY-015017] [Server] MySQL Server Initialization - start.
2024-05-06T00:53:05.541842Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.4.0) initializing of server in progress as process 12365
2024-05-06T00:53:05.672593Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2024-05-06T00:53:16.708141Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2024-05-06T00:54:59.209151Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 8AU)rX)q status
ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
mysql>
mysql> alter user 'root'@'localhost' identified by 'Admin@123!';
Query OK, 0 rows affected (0.32 sec)

mysql> status;
--------------
mysql Ver 8.4.0 for Linux on x86_64 (MySQL Community Server - GPL)

Connection id: 12
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 8.4.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: 9 min 38 sec

Threads: 2 Questions: 10 Slow queries: 0 Opens: 147 Flush tables: 3 Open tables: 63 Queries per second avg: 0.017
--------------

mysql>

其他关于MYSQL 8.4.0的相关变化,在日后的使用中获取。

相关文章

Oracle如何使用授予和撤销权限的语法和示例
Awesome Project: 探索 MatrixOrigin 云原生分布式数据库
下载丨66页PDF,云和恩墨技术通讯(2024年7月刊)
社区版oceanbase安装
Oracle 导出CSV工具-sqluldr2
ETL数据集成丨快速将MySQL数据迁移至Doris数据库

发布评论