当前位置:网站首页>Upgrade Mysql to the latest version (mysql8.0.25)
Upgrade Mysql to the latest version (mysql8.0.25)
2022-06-24 08:07:00 【wangwei-dba】
mysql upgrade
Upgrade path :
MYSQL 5.6 --> MySQL 5.7 --> MySQL8.0.x
MySQL 5.7 GA release (5.7.9 or higher) - MySQL8.0.x
MySQL 8.0.x to 8.0.y
MySQL 8.0.x to 8.0.z
No support for non GA Upgrade version to MySQL 8.0
from MySQL 8.0.16 Start ,MySQL It is not recommended to use mysql_upgrade. In its place server upgrade How to upgrade .
Upgrade process
MySQL 8.0.16 Before :
1. close MySQL, Replace the new binary MySQL
2. start-up MySQL, Let the server upgrade DD( The data dictionary ) surface
3. function mysql_upgrade, Update system tables and user tables
4. Load a new help table
5. restart MySQL
MySQL 8.0.16 after :
1. close MySQL, Replace the new binary MySQL
2. start-up MySQL, upgrade DD( The data dictionary ) Table and system table 、 User table and help table
This verification is upgraded from mysql8.0.18 Upgrade to the latest version of mysql8.0.25
Environmental Science :
mysql edition :mysql 8.0.18
The deployment is : Binary decompression installation
framework : One master and one slave copy ( Turn on gtid Copy )
Pre-upgrade inspection :
Download and install a mysqlshell Tool execution util.checkForServerUpgrade()
checkForServerUpgrade (ConnectionData connectionData, Dictionary options)
util.checkForServerUpgrade('[email protected]:3306', {"password":"password", "targetVersion":"8.0.11", "configPath":"C:\ProgramData\MySQL\MySQL Server 8.0\my.ini"})
8.0.18 Upgrade to 8.0.25 Check :
MySQL 10.1.1.13:3306 ssl JS > util.checkForServerUpgrade()
The MySQL server at 10.1.1.13:3306, version 8.0.18 - MySQL Community Server -
GPL, will now be checked for compatibility issues for upgrade to MySQL 8.0.25...
1) Issues reported by 'check table x for upgrade' command
No issues found
Errors: 0
Warnings: 0
Notices: 0
5.7.26 Upgrade to 8.0.25 Check :
MySQL 10.1.1.14:3308 JS > util.checkForServerUpgrade()
The MySQL server at 10.1.1.14:3308, version 5.7.26-log - MySQL Community Server
(GPL), will now be checked for compatibility issues for upgrade to MySQL
8.0.25...
1) Usage of old temporal type
No issues found
2) Usage of db objects with names conflicting with new reserved keywords
No issues found
3) Usage of utf8mb3 charset
No issues found
4) Table names in the mysql schema conflicting with new tables in 8.0
No issues found
5) Partitioned tables using engines with non native partitioning
No issues found
6) Foreign key constraint names longer than 64 characters
No issues found
7) Usage of obsolete MAXDB sql_mode flag
No issues found
8) Usage of obsolete sql_mode flags
Notice: The following DB objects have obsolete options persisted for
sql_mode, which will be cleared during upgrade to 8.0.
More information:
https://dev.mysql.com/doc/refman/8.0/en/mysql-nutshell.html#mysql-nutshell-removals
global system variable sql_mode - defined using obsolete NO_AUTO_CREATE_USER
option
9) ENUM/SET column definitions containing elements longer than 255 characters
No issues found
10) Usage of partitioned tables in shared tablespaces
No issues found
11) Circular directory references in tablespace data file paths
No issues found
12) Usage of removed functions
No issues found
13) Usage of removed GROUP BY ASC/DESC syntax
No issues found
14) Removed system variables for error logging to the system log configuration
To run this check requires full path to MySQL server configuration file to be specified at 'configPath' key of options dictionary
More information:
https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-13.html#mysqld-8-0-13-logging
15) Removed system variables
To run this check requires full path to MySQL server configuration file to be specified at 'configPath' key of options dictionary
More information:
https://dev.mysql.com/doc/refman/8.0/en/added-deprecated-removed.html#optvars-removed
16) System variables with new default values
To run this check requires full path to MySQL server configuration file to be specified at 'configPath' key of options dictionary
More information:
https://mysqlserverteam.com/new-defaults-in-mysql-8-0/
17) Zero Date, Datetime, and Timestamp values
No issues found
18) Schema inconsistencies resulting from file removal or corruption
No issues found
19) Tables recognized by InnoDB that belong to a different engine
No issues found
20) Issues reported by 'check table x for upgrade' command
No issues found
21) New default authentication plugin considerations
Warning: The new default authentication plugin 'caching_sha2_password' offers
more secure password hashing than previously used 'mysql_native_password'
(and consequent improved client connection authentication). However, it also
has compatibility implications that may affect existing MySQL installations.
If your MySQL installation must serve pre-8.0 clients and you encounter
compatibility issues after upgrading, the simplest way to address those
issues is to reconfigure the server to revert to the previous default
authentication plugin (mysql_native_password). For example, use these lines
in the server option file:
[mysqld]
default_authentication_plugin=mysql_native_password
However, the setting should be viewed as temporary, not as a long term or
permanent solution, because it causes new accounts created with the setting
in effect to forego the improved authentication security.
If you are using replication please take time to understand how the
authentication plugin changes may impact you.
More information:
https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password-compatibility-issues
https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password-replication
Errors: 0
Warnings: 1
Notices: 1
No fatal errors were found that would prevent an upgrade, but some potential issues were detected. Please ensure that the reported issues are not significant before upgrading.
MySQL 10.1.1.14:3308 JS >
Correct the problems found in the inspection
2. Determine whether the configuration file configuration item needs to be modified as required , The current environment does not need to be modified
3. Download the latest version of binary package , And extract the , Modify the main genus
cd /usr/local wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz decompression : tar -Jxvf mysql-8.0.25-linux-glibc2.12-x86_64.tar.xz chown jurisdiction chown mysql:mysql -R /usr/local/mysql-8.0.25-linux-glibc2.12-x86_64
4. Upgrade first slave Stop copying , Stop the database instance
mysql> stop slave; mysql> shutdown
5. Delete the old version mysql Soft link , Then link to the new version of mysql On
cd /usr/local rm -rf mysql ln -s /usr/local/mysql-8.0.25-linux-glibc2.12-x86_64 mysql
6. Start database
/usr/local/mysql8018/bin/mysqld --defaults-file=/home/my3306.cnf --user=mysql &
7. Check error journal
2021-06-28T04:28:21.864893-04:00 1 [Note] [MY-012976] [InnoDB] 8.0.25 started; log sequence number 20126176 2021-06-28T04:28:21.876704-04:00 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2021-06-28T04:28:21.901950-04:00 1 [System] [MY-011090] [Server] Data dictionary upgrading from version '80017' to '80023'. 2021-06-28T04:28:21.924913-04:00 1 [Note] [MY-013327] [Server] MySQL server upgrading from version '80018' to '80025'. 2021-06-28T04:28:22.112061-04:00 1 [Note] [MY-012357] [InnoDB] Reading DD tablespace files 2021-06-28T04:28:22.113231-04:00 1 [Note] [MY-012356] [InnoDB] Scanned 6 tablespaces. Validated 6. 2021-06-28T04:28:22.738032-04:00 1 [System] [MY-013413] [Server] Data dictionary upgrade from version '80017' to '80023' completed. 2021-06-28T04:28:22.752008-04:00 1 [Note] [MY-013327] [Server] MySQL server upgrading from version '80018' to '80025'. 2021-06-28T04:28:22.907422-04:00 1 [Note] [MY-010006] [Server] Using data dictionary with version '80023'. 2021-06-28T04:28:22.917070-04:00 0 [Note] [MY-011332] [Server] Plugin mysqlx reported: 'IPv6 is available' 2021-06-28T04:28:22.917732-04:00 0 [Note] [MY-011323] [Server] Plugin mysqlx reported: 'X Plugin ready for connections. bind-address: '::' port: 33060' 2021-06-28T04:28:22.917943-04:00 0 [Note] [MY-011323] [Server] Plugin mysqlx reported: 'X Plugin ready for connections. socket: '/tmp/mysqlx.sock'' 2021-06-28T04:28:22.918153-04:00 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock 2021-06-28T04:28:24.728769-04:00 4 [System] [MY-013381] [Server] Server upgrade from '80018' to '80025' started. 2021-06-28T04:28:24.730175-04:00 4 [Note] [MY-013386] [Server] Running queries to upgrade MySQL server.
8. Data check after connection upgrade mysql edition
select version(); mysql> select version(); +-----------+ | version() | +-----------+ | 8.0.25 | +-----------+
9. Upgrade the main library in the same way , And start replication
10. The test business runs the basic process
11. Upgrade backup tools , A new version of the backup has been made
upgrade xtrabackup Tools to 8.0.25-17
边栏推荐
- 运行npm run eject报错解决方法
- JDBC 在性能测试中的应用
- Chrono usage notes
- Cloud development who is the source code of undercover applet
- Sql语句内运算问题
- UTC、GMT、CST
- Chapitre 2: dessiner une fenêtre
- 使用 kubeconfig 文件组织集群访问
- Leetcode 515 find the leetcode path of the maximum [bfs binary tree] heroding in each row
- . No main manifest attribute in jar
猜你喜欢

Practice of opengauss database on CentOS, configuration

Vulnhub target: boredhackerblog_ CLOUD AV

Coordinate transformation of graphic technology

Simple summary of lighting usage

Baidu map, coordinate inversion, picking coordinate position

JDBC 在性能测试中的应用

Vulnhub target: boredhackerblog: social network

1-4metasploitable2介绍

From jsonpath and XPath to spl

Svn actual measurement common operation record operation
随机推荐
软件工程导论——第三章——需求分析
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
Solve the problem of notebook keyboard disabling failure
Vulnhub target: boredhackerblog: social network
Hongmeng development IV
解决错误: LNK2019 无法解析的外部符号
Echart 心得 (一): 有关Y轴yAxis属性
Solution to the error of running NPM run eject
Thread blocking
Part 2: drawing a window
Chapter 4 line operation of canvas
Vulnhub靶机:BOREDHACKERBLOG_ CLOUD AV
Free ICP domain name filing interface
Chapter 3 curve graph of canvas
Review of postgraduate English final exam
Phonics
3-列表简介
Leetcode 174 Dungeon games (June 23, 2022)
Cloud development who is the source code of undercover applet
Graphmae - - lecture rapide des documents