-- In place upgrade frm 5.6->5.7->8.0 - 5.6.50 rm -rf 101944/ scripts/mysql_install_db --basedir=$PWD --datadir=$PWD/101944 bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/101944 --core-file --socket=/tmp/mysql_ushastry.sock --port=3333 --log-error=$PWD/101944/log.err --performance-schema=ON 2>&1 & bin/mysql -uroot -S /tmp/mysql_ushastry.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.6.50 MySQL Community Server (GPL) Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. 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> use test Database changed mysql> CREATE TABLE testtable ( testcol point DEFAULT NULL ) ENGINE=InnoDB -> ; Query OK, 0 rows affected (0.06 sec) mysql> \q Bye bin/mysqladmin -uroot -S /tmp/mysql_ushastry.sock shutdown -- Inplace upgrade to 5.7.32 bin/mysqld --no-defaults --basedir=$PWD --datadir=/home/umshastr/work/binaries/ga/mysql-5.6.50/101944 --core-file --socket=/tmp/mysql_ushastry.sock --port=3333 --log-error=/home/umshastr/work/binaries/ga/mysql-5.6.50/101944/log.err --log-error-verbosity=3 --secure-file-priv="" --skip-name-resolve --performance-schema=ON 2>&1 & - mysql_upgrade and restart bin/mysql_upgrade -uroot -S /tmp/mysql_ushastry.sock Checking if update is needed. Checking server version. Running queries to upgrade MySQL server. Checking system database. mysql.columns_priv OK mysql.db OK mysql.engine_cost OK mysql.event OK mysql.func OK mysql.general_log OK mysql.gtid_executed OK mysql.help_category OK mysql.help_keyword OK mysql.help_relation OK mysql.help_topic OK mysql.innodb_index_stats OK mysql.innodb_table_stats OK mysql.ndb_binlog_index OK mysql.plugin OK mysql.proc OK mysql.procs_priv OK mysql.proxies_priv OK mysql.server_cost OK mysql.servers OK mysql.slave_master_info OK mysql.slave_relay_log_info OK mysql.slave_worker_info OK mysql.slow_log OK mysql.tables_priv OK mysql.time_zone OK mysql.time_zone_leap_second OK mysql.time_zone_name OK mysql.time_zone_transition OK mysql.time_zone_transition_type OK mysql.user OK Upgrading the sys schema. Checking databases. sys.sys_config OK test.testtable OK Upgrade process completed successfully. Checking if update is needed. - bin/mysqladmin -uroot -S /tmp/mysql_ushastry.sock shutdown - bin/mysqld --no-defaults --basedir=$PWD --datadir=/home/umshastr/work/binaries/ga/mysql-5.6.50/101944 --core-file --socket=/tmp/mysql_ushastry.sock --port=3333 --log-error=/home/umshastr/work/binaries/ga/mysql-5.6.50/101944/log.err --log-error-verbosity=3 --secure-file-priv="" --skip-name-resolve --performance-schema=ON 2>&1 & - bin/mysql -uroot -S /tmp/mysql_ushastry.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.7.32 MySQL Community Server (GPL) Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. 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> use test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show create table testtable\G *************************** 1. row *************************** Table: testtable Create Table: CREATE TABLE `testtable` ( `testcol` point DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1 1 row in set (0.00 sec) mysql> -- Upgrade Checker Utility - Check if upgrade possible bin/mysqlsh -uroot -S /tmp/mysql_ushastry.sock Please provide the password for 'root@/tmp%2Fmysql_ushastry.sock': MySQL Shell 8.0.22 Copyright (c) 2016, 2020, 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 '\?' for help; '\quit' to exit. Creating a session to 'root@/tmp%2Fmysql_ushastry.sock' Fetching schema names for autocompletion... Press ^C to stop. Your MySQL connection id is 4 Server version: 5.7.32 MySQL Community Server (GPL) No default schema selected; type \use to set one. MySQL localhost JS > util.checkForServerUpgrade() The MySQL server at /tmp%2Fmysql_ushastry.sock, version 5.7.32 - MySQL Community Server (GPL), will now be checked for compatibility issues for upgrade to MySQL 8.0.22... 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. -- shutdown 5.7.32 mysql> shutdown; Query OK, 0 rows affected (0.00 sec) mysql> \q Bye -- In place upgrade to 8.0.22 bin/mysqld --no-defaults --basedir=$PWD --datadir=/home/umshastr/work/binaries/ga/mysql-5.6.50/101944 --core-file --socket=/tmp/mysql_ushastry.sock --port=3333 --log-error=/home/umshastr/work/binaries/ga/mysql-5.6.50/101944/log.err --mysqlx-port=33330 --mysqlx-socket=/tmp/mysql_x_ushastry.sock --log-error-verbosity=3 --secure-file-priv=/tmp/ 2>&1 & ^^ fails with 2020-12-10T10:28:24.865740Z 2 [ERROR] [MY-012064] [InnoDB] Column datatype mismatch for col: testcol 2020-12-10T10:28:24.866340Z 2 [ERROR] [MY-012070] [InnoDB] Column testcol for table: `test`.`testtable` mismatches with InnoDB Dictionary 2020-12-10T10:28:24.866930Z 2 [ERROR] [MY-010767] [Server] Error in fixing SE data for test.testtable 2020-12-10T10:28:26.570850Z 0 [ERROR] [MY-010022] [Server] Failed to Populate DD tables. 2020-12-10T10:28:26.571973Z 0 [ERROR] [MY-010119] [Server] Aborting