# 查看当前系统的 glibc 版本 $ ldd --version ldd (GNU libc) 2.26 Copyright (C) 2017 Free Software Foundation, Inc. This is free software; see the sourcefor copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Roland McGrath and Ulrich Drepper.
WARNING: Using a password on the command line interface can be insecure. The MySQL server at localhost:3306, version 5.7.44-log - Please upgrade to 8.0 or opt-in to the paid RDS Extended Support service before 5.7 reaches end of standard support on 29 February, 2024: https://a.co/hQqiIn0, will now be checked for compatibility issues for upgrade to MySQL 8.0.30...
# 旧时间类型的使用 1) Usage of old temporal type No issues found
# 使用与新保留关键字冲突的数据库对象名称 2) Usage of db objects with names conflicting with new reserved keywords No issues found
# 使用utf8mb3字符集 3) Usage of utf8mb3 charset Warning: The following objects use the utf8mb3 character set. It is recommended to convert them to use utf8mb4 instead, for improved Unicode support. More information: https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8mb3.html
mydb - schema's default character set: utf8 mysql - schema's default character set: utf8 mydb.tbl_info_i.a_product - column's default character set: utf8 mydb.tbl_info_i.a_country - column's default character set: utf8 mydb.tbl_info_i.a_version - column's default character set: utf8 mydb.tbl_info_i.a_placement - column's default character set: utf8 ………………………………………………………………………………………………………………………………
# MySQL模式中的表名与8.0中的新表冲突 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
# 外键约束名称超过64个字符 6) Foreign key constraint names longer than 64 characters No issues found
# 使用过时的MAXDB sql_mode标志 7) Usage of obsolete MAXDB sql_mode flag No issues found
# 使用过时的sql_mode标志 8) Usage of obsolete sql_mode flags No issues found
# ENUM/SET列定义包含超过255个字符的元素 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
# 使用已删除的GROUP BY ASC/DESC语法 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 Warning: By default zero date/datetime/timestamp values are no longer allowed in MySQL, as of 5.7.8 NO_ZERO_IN_DATE and NO_ZERO_DATE are included in SQL_MODE by default. These modes should be used with strict mode as they will be merged with strict mode in a future release. If you do not include these modes in your SQL_MODE setting, you are able to insert date/datetime/timestamp values that contain zeros. It is strongly advised to replace zero values with valid ones, as they may not work correctly in the future. More information: https://lefred.be/content/mysql-8-0-and-wrong-dates/
global.sql_mode - does not contain either NO_ZERO_DATE or NO_ZERO_IN_DATE which allows insertion of zero dates
# 由文件删除或损坏导致的模式不一致 18) Schema inconsistencies resulting from file removal or corruption No issues found
# 被InnoDB识别但属于不同引擎的表 19) Tables recognized by InnoDB that belong to a different engine No issues found
# 'check table x for upgrade'命令报告的问题 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:
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: 98 Notices: 0
NOTE: 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.
另外还要注意关键词和保留词的问题,mysql8.0以后,又增加了很多个关键词和保留词,如果检查到则需要修改一下,不然升级会失败。即便表和字段里没有使用这些保留字,也要检查一下业务代码中是否有使用。关于关键词和保留词可以查看官网Keywords and Reserved Words,相比于MySQL 5.7,增加了大约130个,同时也减少了6个。
# 升级检查 ./mysqlsh8.0.30/bin/mysqlsh --uri root:123456@localhost -e "util.checkForServerUpgrade()" # 输出 WARNING: Using a password on the command line interface can be insecure. The MySQL server at /tmp%2Fmysql.sock, version 5.7.44-log - MySQL Community Server (GPL), will now be checked for compatibility issues for upgrade to MySQL 8.0.30...
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 Warning: The following objects use the utf8mb3 character set. It is recommended to convert them to use utf8mb4 instead, for improved Unicode support. More information: https://dev.mysql.com/doc/refman/8.0/en/charset-unicode-utf8mb3.html
mydb - schema's default character set: utf8 mysql - schema's default character set: utf8 mydb.tbl_info_i.a_product - column's default character set: utf8 mydb.tbl_info_i.a_country - column's default character set: utf8 mydb.tbl_info_i.a_version - column's default character set: utf8 mydb.tbl_info_i.a_placement - column's default character set: utf8 …………………………………………………………………………………………
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:
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: 98 Notices: 1
NOTE: 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.
2024-05-09T06:48:50.524705Z 0 [Warning] [MY-011068] [Server] The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2024-05-09T06:48:50.524819Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path. 2024-05-09T06:48:50.524917Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead. 2024-05-09T06:48:50.524983Z 0 [System] [MY-010116] [Server] /usr/local/soft/mysql8.0.30/bin/mysqld (mysqld 8.0.30) starting as process 26696 2024-05-09T06:48:50.563366Z 1 [System] [MY-011012] [Server] Starting upgrade of data directory. 2024-05-09T06:48:50.563414Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2024-05-09T06:48:51.260298Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2024-05-09T06:48:53.614398Z 2 [System] [MY-011003] [Server] Finished populating Data Dictionary tables with data. 2024-05-09T06:48:55.055320Z 5 [System] [MY-013381] [Server] Server upgrade from '50700' to '80030' started. 2024-05-09T06:49:02.063990Z 5 [System] [MY-013381] [Server] Server upgrade from '50700' to '80030' completed. 2024-05-09T06:49:02.237992Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2024-05-09T06:49:02.238048Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2024-05-09T06:49:02.267583Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock 2024-05-09T06:49:02.267648Z 0 [System] [MY-010931] [Server] /usr/local/soft/mysql8.0.30/bin/mysqld: ready for connections. Version: '8.0.30' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server - GPL.
1.The syntax 'expire-logs-days' is deprecated and will be removed in a future release. Please use binlog_expire_logs_seconds instead. 2.'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
修改密码插件,这个步骤很重要
1 2 3 4
# 登录 ./mysql8.0.30/bin/mysql -uroot -p123456 # 升级完成后使用新的密码认证插件修改密码,8.4不再推荐mysql_native_password认证插,所以升级到8.4以前一定要先修改密码插件,如果忘记了也没关系,文末有重置密码的方法 mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY '123456';
# 升级检查 ./mysqlsh8.4.0/bin/mysqlsh --uri root:123456@localhost --js -e "util.checkForServerUpgrade()" # 输出 WARNING: Using a password on the command line interface can be insecure. Creating a Classic session to 'root@/tmp%2Fmysql.sock' The MySQL server at /tmp%2Fmysql.sock, version 8.0.30 - MySQL Community Server - GPL, will now be checked for compatibility issues for upgrade to MySQL 8.4.0. To check for a different target server version, use the targetVersion option.
WARNING: Upgrading MySQL Server from version 8.0.30 to 8.4.0 is not supported. Please consider running the check using the following option: targetVersion=8.0
1) Usage of db objects with names conflicting with new reserved keywords (reservedKeywords) No issues found
2) Removed system variables (removedSysVars) Error: Following system variables that were detected as being used will be removed. Please update your system to not rely on them before the upgrade. More information: https://dev.mysql.com/doc/refman/8.0/en/added-deprecated-removed.html#optvars-removed
expire_logs_days - Error: The system variable 'expire_logs_days' is set to 10 (EXPLICIT) and will be removed.
3) System variables with new default values (sysVarsNewDefaults) Warning: Following system variables that are not defined in your configuration file will have new default values. Please review if you rely on their current values and if so define them before performing upgrade. More information: https://dev.mysql.com/blog-archive/new-defaults-in-mysql-8-0/
binlog_transaction_dependency_tracking - default value will change from COMMIT_ORDER to WRITESET. group_replication_consistency - default value will change from EVENTUAL to BEFORE_ON_PRIMARY_FAILOVER. group_replication_exit_state_action - default value will change from READ_ONLY to OFFLINE_MODE. innodb_adaptive_hash_index - default value will change from ON to OFF. innodb_buffer_pool_in_core_file - default value will change from ON to OFF. innodb_buffer_pool_instances - default value will change from 8 (or 1 if innodb_buffer_pool_size < 1GB) to MAX(1, #vcpu/4). innodb_change_buffering - default value will change from all to none. innodb_doublewrite_files - default value will change from innodb_buffer_pool_instances * 2 to 2. innodb_doublewrite_pages - default value will change from innodb_write_io_threads to 128. innodb_flush_method - default value will change from fsynch (unix) or unbuffered (windows) to O_DIRECT. innodb_io_capacity - default value will change from 200 to 10000. innodb_io_capacity_max - default value will change from 200 to 2 x innodb_io_capacity. innodb_log_buffer_size - default value will change from 16777216 (16MB) to 67108864 (64MB). innodb_log_writer_threads - default value will change from ON to OFF ( if #vcpu <= 32 ). innodb_numa_interleave - default value will change from OFF to ON. innodb_page_cleaners - default value will change from 4 to innodb_buffer_pool_instances. innodb_parallel_read_threads - default value will change from 4 to MAX(#vcpu/8, 4). innodb_purge_threads - default value will change from 4 to 1 ( if#vcpu <= 16 ). innodb_read_io_threads - default value will change from 4 to MAX(#vcpu/2, 4). innodb_redo_log_capacity - default value will change from 104857600 (100MB) to MIN ( #vcpu/2, 16 )GB.
4) Issues reported by 'check table x for upgrade'command (checkTableCommand) No issues found
5) Check for deprecated usage of single dollar signs in object names (dollarSignName) No issues found
6) Check for deprecated or invalid user authentication methods. (authMethodUsage) Warning: The following users are using the 'mysql_native_password' authentication method which is deprecated as of MySQL 8.0.0 and will be removed in a future release. Consider switching the users to a different authentication method (i.e. caching_sha2_password).
More information: https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html
7) Check for deprecated or removed plugin usage. (pluginUsage) No issues found
8) Check for deprecated or invalid default authentication methods in system variables. (deprecatedDefaultAuth) The following variables have problems with their set authentication method:
Error: default_authentication_plugin - mysql_native_password authentication method was removed and it must be corrected before upgrading to 8.4.0 release.
9) Check for deprecated or invalid authentication methods in use by MySQL Router internal accounts. (deprecatedRouterAuthMethod) No issues found
10) Checks for errors in column definitions (columnDefinition) No issues found
11) Check for allowed values in System Variables. (sysvarAllowedValues) No issues found
12) Checks for user privileges that will be removed (invalidPrivileges) Verifies forusers containing grants to be removed, since privileges are removed as part of the upgrade, raises a NOTICE to inform the user about users that will be losing invalid privileges
'mysql.session'@'localhost' - The user 'mysql.session'@'localhost' has the following privileges that will be removed as part of the upgrade process: SET_USER_ID 'root'@'localhost' - The user 'root'@'localhost' has the following privileges that will be removed as part of the upgrade process: SET_USER_ID
13) Checks for partitions by key using columns with prefix key indexes (partitionsWithPrefixKeys) No issues found
Errors: 2 Warnings: 24 Notices: 2
ERROR: 2 errors were found. Please correct these issues before upgrading to avoid compatibility issues.
# 升级检查 ./mysqlsh8.4.0/bin/mysqlsh --uri root:123456@localhost --js -e "util.checkForServerUpgrade()" # 输出 WARNING: Using a password on the command line interface can be insecure. Creating a Classic session to 'root@/tmp%2Fmysql.sock' The MySQL server at /tmp%2Fmysql.sock, version 8.0.30 - MySQL Community Server - GPL, will now be checked for compatibility issues for upgrade to MySQL 8.4.0. To check for a different target server version, use the targetVersion option.
WARNING: Upgrading MySQL Server from version 8.0.30 to 8.4.0 is not supported. Please consider running the check using the following option: targetVersion=8.0
1) Usage of db objects with names conflicting with new reserved keywords (reservedKeywords) No issues found
2) Removed system variables (removedSysVars) No issues found
3) System variables with new default values (sysVarsNewDefaults) Warning: Following system variables that are not defined in your configuration file will have new default values. Please review if you rely on their current values and if so define them before performing upgrade. More information: https://dev.mysql.com/blog-archive/new-defaults-in-mysql-8-0/
binlog_transaction_dependency_tracking - default value will change from COMMIT_ORDER to WRITESET. group_replication_consistency - default value will change from EVENTUAL to BEFORE_ON_PRIMARY_FAILOVER. group_replication_exit_state_action - default value will change from READ_ONLY to OFFLINE_MODE. innodb_adaptive_hash_index - default value will change from ON to OFF. innodb_buffer_pool_in_core_file - default value will change from ON to OFF. innodb_buffer_pool_instances - default value will change from 8 (or 1 if innodb_buffer_pool_size < 1GB) to MAX(1, #vcpu/4). innodb_change_buffering - default value will change from all to none. innodb_doublewrite_files - default value will change from innodb_buffer_pool_instances * 2 to 2. innodb_doublewrite_pages - default value will change from innodb_write_io_threads to 128. innodb_flush_method - default value will change from fsynch (unix) or unbuffered (windows) to O_DIRECT. innodb_io_capacity - default value will change from 200 to 10000. innodb_io_capacity_max - default value will change from 200 to 2 x innodb_io_capacity. innodb_log_buffer_size - default value will change from 16777216 (16MB) to 67108864 (64MB). innodb_log_writer_threads - default value will change from ON to OFF ( if #vcpu <= 32 ). innodb_numa_interleave - default value will change from OFF to ON. innodb_page_cleaners - default value will change from 4 to innodb_buffer_pool_instances. innodb_parallel_read_threads - default value will change from 4 to MAX(#vcpu/8, 4). innodb_purge_threads - default value will change from 4 to 1 ( if#vcpu <= 16 ). innodb_read_io_threads - default value will change from 4 to MAX(#vcpu/2, 4). innodb_redo_log_capacity - default value will change from 104857600 (100MB) to MIN ( #vcpu/2, 16 )GB.
4) Issues reported by 'check table x for upgrade'command (checkTableCommand) No issues found
5) Check for deprecated usage of single dollar signs in object names (dollarSignName) No issues found
6) Check for deprecated or invalid user authentication methods. (authMethodUsage) Warning: The following users are using the 'mysql_native_password' authentication method which is deprecated as of MySQL 8.0.0 and will be removed in a future release. Consider switching the users to a different authentication method (i.e. caching_sha2_password).
More information: https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html
7) Check for deprecated or removed plugin usage. (pluginUsage) No issues found
8) Check for deprecated or invalid default authentication methods in system variables. (deprecatedDefaultAuth) No issues found
9) Check for deprecated or invalid authentication methods in use by MySQL Router internal accounts. (deprecatedRouterAuthMethod) No issues found
10) Checks for errors in column definitions (columnDefinition) No issues found
11) Check for allowed values in System Variables. (sysvarAllowedValues) No issues found
12) Checks for user privileges that will be removed (invalidPrivileges) Verifies forusers containing grants to be removed, since privileges are removed as part of the upgrade, raises a NOTICE to inform the user about users that will be losing invalid privileges
'mysql.session'@'localhost' - The user 'mysql.session'@'localhost' has the following privileges that will be removed as part of the upgrade process: SET_USER_ID 'root'@'localhost' - The user 'root'@'localhost' has the following privileges that will be removed as part of the upgrade process: SET_USER_ID
13) Checks for partitions by key using columns with prefix key indexes (partitionsWithPrefixKeys) No issues found
Errors: 0 Warnings: 24 Notices: 2
NOTE: 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.
2024-05-09T07:21:55.325669Z 0 [System] [MY-015015] [Server] MySQL Server - start. 2024-05-09T07:21:55.740435Z 0 [Warning] [MY-011070] [Server] 'binlog_format' is deprecated and will be removed in a future release. 2024-05-09T07:21:55.740549Z 0 [Warning] [MY-010097] [Server] Insecure configuration for --secure-file-priv: Current value does not restrict location of generated files. Consider setting it to a valid, non-empty path. 2024-05-09T07:21:55.740629Z 0 [System] [MY-010116] [Server] /usr/local/soft/mysql-8.4.0-linux-glibc2.17-x86_64/bin/mysqld (mysqld 8.4.0) starting as process 28414 2024-05-09T07:21:55.796983Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2024-05-09T07:21:56.421873Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2024-05-09T07:21:56.442008Z 1 [System] [MY-011090] [Server] Data dictionary upgrading from version '80023' to '80300'. 2024-05-09T07:21:57.106002Z 1 [System] [MY-013413] [Server] Data dictionary upgrade from version '80023' to '80300' completed. 2024-05-09T07:22:00.128935Z 4 [System] [MY-013381] [Server] Server upgrade from '80030' to '80400' started. 2024-05-09T07:22:06.850838Z 4 [System] [MY-013381] [Server] Server upgrade from '80030' to '80400' completed. 2024-05-09T07:22:07.063386Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2024-05-09T07:22:07.063456Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2024-05-09T07:22:07.085760Z 0 [System] [MY-010931] [Server] /usr/local/soft/mysql-8.4.0-linux-glibc2.17-x86_64/bin/mysqld: ready for connections. Version: '8.4.0' socket: '/tmp/mysql.sock' port: 3306 MySQL Community Server - GPL. 2024-05-09T07:22:07.340333Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock
从日志看到’binlog_format’也要不支持了,不过先不用管,等到不支持了再处理吧。
如果升级到8.4之前忘记给用户修改密码插件了,则升级之后就不能正常登录了,此时怎么办呢?
升级到8.4之前忘记修改密码插件了,则升级之后登录数据库会报告如下错误
1
ERROR 1524 (HY000): Plugin 'mysql_native_password' is not loaded
mysql> USE mysql; # 修改密码插件为 caching_sha2_password mysql> UPDATE user SET plugin='caching_sha2_password' WHERE User='root'; # 将密码设置为空 mysql> UPDATE user SET authentication_string=null WHERE User='root'; # 刷新权限: mysql> FLUSH PRIVILEGES; # 退出MySQL mysql> exit;