- 5.7.36 cat docs/INFO_SRC commit: 2aa8fb6eab92ce54f951b346ec63a9c682ef19dd date: 2021-09-06 10:02:34 +0200 build-date: 2021-09-07 05:27:07 +0000 short: 2aa8fb6eab9 branch: mysql-5.7.36-release MySQL source 5.7.36 rm -rf 105301/ bin/mysqld --initialize-insecure --basedir=$PWD --datadir=$PWD/105301 --log-error-verbosity=3 bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/105301 --core-file --socket=/tmp/mysql_ushastry.sock --port=3306 --log-error=$PWD/105301/log.err --log-error-verbosity=3 --secure-file-priv="" --performance-schema=ON --log-bin --server-id=1 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.36-log MySQL Community Server (GPL) Copyright (c) 2000, 2021, 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> DROP DATABASE IF EXISTS `testdb`; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> CREATE DATABASE `testdb`; Query OK, 1 row affected (0.00 sec) mysql> /*!40101 SET @saved_cs_client = @@character_set_client */; Query OK, 0 rows affected (0.00 sec) mysql> /*!40101 SET character_set_client = utf8 */; Query OK, 0 rows affected (0.00 sec) mysql> mysql> USE `testdb`; Database changed mysql> mysql> DROP TABLE IF EXISTS `testTable1`; Query OK, 0 rows affected, 1 warning (0.00 sec) mysql> /*!40101 SET @saved_cs_client = @@character_set_client */; Query OK, 0 rows affected (0.00 sec) mysql> /*!40101 SET character_set_client = utf8 */; Query OK, 0 rows affected (0.00 sec) mysql> CREATE TABLE `testTable1` ( -> `ID` int(10) unsigned NOT NULL AUTO_INCREMENT, -> `column1` timestamp NULL DEFAULT NULL, -> `column2` int(11) GENERATED ALWAYS AS (ifnull(timestampdiff(SECOND,'1970-01-01 00:00:00',`column1`),0)) VIRTUAL, -> `column3` varchar(255) DEFAULT NULL, -> PRIMARY KEY (`ID`) -> ) ENGINE=MyISAM AUTO_INCREMENT=33 DEFAULT CHARSET=utf8; Query OK, 0 rows affected (0.00 sec) mysql> /*!40101 SET character_set_client = @saved_cs_client */; Query OK, 0 rows affected (0.00 sec) mysql> SHOW DATABASES; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | | testdb | +--------------------+ 5 rows in set (0.00 sec) mysql> SELECT * FROM testdb.testTable1; Empty set (0.00 sec) mysql> USE testdb; Database changed mysql> CHECK TABLE testTable1; +-------------------+-------+----------+----------+ | Table | Op | Msg_type | Msg_text | +-------------------+-------+----------+----------+ | testdb.testTable1 | check | status | OK | +-------------------+-------+----------+----------+ 1 row in set (0.00 sec) mysql> - Let us check using upgrade check utility bin/mysqlsh -- util checkForServerUpgrade root@localhost:3306 --target-version=8.0.27 Please provide the password for 'root@localhost:3306': The MySQL server at localhost:3306, version 5.7.36-log - MySQL Community Server (GPL), will now be checked for compatibility issues for upgrade to MySQL 8.0.27... 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 testdb.testTable1.column3 - 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: [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: 2 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, perform in-place upgrade to 8.0.27 since no fatal errors were reported mysql> shutdown; Query OK, 0 rows affected (0.00 sec) mysql> \q Bye [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64]$ [1]+ Done bin/mysqld --no-defaults --basedir=$PWD --datadir=$PWD/105301 --core-file --socket=/tmp/mysql_ushastry.sock --port=3306 --log-error=$PWD/105301/log.err --log-error-verbosity=3 --secure-file-priv="" --performance-schema=ON --log-bin --server-id=1 2>&1 - attempt in-place upgrade, use --upgrade=FORCE cat docs/INFO_SRC commit: 5c5b83a19a7ee94f7418d6e4fbb37da4b63d5d96 date: 2021-09-28 13:36:27 +0200 build-date: 2021-09-28 11:47:35 +0000 short: 5c5b83a19a7 branch: mysql-8.0.27-release MySQL source 8.0.27 bin/mysqld --no-defaults --basedir=$PWD --datadir=/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301 --core-file --socket=/tmp/mysql_ushastry.sock --port=3306 --log-error=/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301/log.err --log-error-verbosity=3 --secure-file-priv=/tmp/ --upgrade=FORCE 2>&1 & [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ bin/mysqld --no-defaults --basedir=$PWD --datadir=/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301 --core-file --socket=/tmp/mysql_ushastry.sock --port=3306 --log-error=/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301/log.err --log-error-verbosity=3 --secure-file-priv=/tmp/ --upgrade=FORCE 2>&1 & [1] 30112 [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ bin/mysql -uroot -S /tmp/mysql_ushastry.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.27 MySQL Community Server - GPL Copyright (c) 2000, 2021, 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.27 error log confirms table repair failed - 2021-10-25T13:14:28.216891Z 0 [Warning] [MY-010101] [Server] Insecure configuration for --secure-file-priv: Location is accessible to all OS users. Consider choosing a different directory. 2021-10-25T13:14:28.216946Z 0 [Note] [MY-010949] [Server] Basedir set to /export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64/. 2021-10-25T13:14:28.216958Z 0 [System] [MY-010116] [Server] /export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64/bin/mysqld (mysqld 8.0.27) starting as process 30112 2021-10-25T13:14:28.223336Z 0 [Note] [MY-012366] [InnoDB] Using Linux native AIO 2021-10-25T13:14:28.223533Z 0 [Note] [MY-010747] [Server] Plugin 'FEDERATED' is disabled. 2021-10-25T13:14:28.225516Z 1 [System] [MY-011012] [Server] Starting upgrade of data directory. 2021-10-25T13:14:28.225547Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2021-10-25T13:14:28.225570Z 1 [Note] [MY-013546] [InnoDB] Atomic write enabled 2021-10-25T13:14:28.225597Z 1 [Note] [MY-012932] [InnoDB] PUNCH HOLE support available 2021-10-25T13:14:28.225618Z 1 [Note] [MY-012944] [InnoDB] Uses event mutexes 2021-10-25T13:14:28.225635Z 1 [Note] [MY-012945] [InnoDB] GCC builtin __atomic_thread_fence() is used for memory barrier 2021-10-25T13:14:28.225652Z 1 [Note] [MY-012948] [InnoDB] Compressed tables use zlib 1.2.11 2021-10-25T13:14:28.226954Z 1 [Note] [MY-013251] [InnoDB] Number of pools: 1 2021-10-25T13:14:28.227071Z 1 [Note] [MY-012951] [InnoDB] Using hardware accelerated crc32 and polynomial multiplication. 2021-10-25T13:14:28.227467Z 1 [Note] [MY-012203] [InnoDB] Directories to scan './' 2021-10-25T13:14:28.227522Z 1 [Note] [MY-012204] [InnoDB] Scanning './' 2021-10-25T13:14:28.228750Z 1 [Note] [MY-012208] [InnoDB] Completed space ID check of 20 files. 2021-10-25T13:14:28.229311Z 1 [Note] [MY-012955] [InnoDB] Initializing buffer pool, total size = 128.000000M, instances = 1, chunk size =128.000000M 2021-10-25T13:14:28.234473Z 1 [Note] [MY-012957] [InnoDB] Completed initialization of buffer pool 2021-10-25T13:14:28.237598Z 0 [Note] [MY-011952] [InnoDB] If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority(). 2021-10-25T13:14:28.354487Z 1 [Note] [MY-013566] [InnoDB] Double write buffer files: 2 2021-10-25T13:14:28.354538Z 1 [Note] [MY-013565] [InnoDB] Double write buffer pages per instance: 4 2021-10-25T13:14:28.354618Z 1 [Note] [MY-013532] [InnoDB] Using './#ib_16384_0.dblwr' for doublewrite 2021-10-25T13:14:28.354781Z 1 [Note] [MY-013532] [InnoDB] Using './#ib_16384_1.dblwr' for doublewrite 2021-10-25T13:14:28.357544Z 1 [Note] [MY-012529] [InnoDB] Redo log format is v1. The redo log was created before MySQL 8.0.3. 2021-10-25T13:14:28.357570Z 1 [Note] [MY-012557] [InnoDB] Redo log is from an earlier version, v1. 2021-10-25T13:14:28.357942Z 1 [Note] [MY-013083] [InnoDB] Log background threads are being started... 2021-10-25T13:14:28.358310Z 1 [Note] [MY-012532] [InnoDB] Applying a batch of 0 redo log records ... 2021-10-25T13:14:28.358335Z 1 [Note] [MY-012535] [InnoDB] Apply batch completed! 2021-10-25T13:14:28.358431Z 1 [Note] [MY-013041] [InnoDB] Upgrading redo log: 2*50331648 bytes, LSN=2749751 2021-10-25T13:14:28.358634Z 1 [Note] [MY-013084] [InnoDB] Log background threads are being closed... 2021-10-25T13:14:28.365000Z 1 [Note] [MY-012968] [InnoDB] Starting to delete and rewrite log files. 2021-10-25T13:14:28.371042Z 1 [Note] [MY-013575] [InnoDB] Creating log file ./ib_logfile101 2021-10-25T13:14:28.486020Z 1 [Note] [MY-013575] [InnoDB] Creating log file ./ib_logfile1 2021-10-25T13:14:28.722368Z 1 [Note] [MY-012892] [InnoDB] Renaming log file ./ib_logfile101 to ./ib_logfile0 2021-10-25T13:14:28.722475Z 1 [Note] [MY-012893] [InnoDB] New log files created, LSN=2749964 2021-10-25T13:14:28.722496Z 1 [Note] [MY-013083] [InnoDB] Log background threads are being started... 2021-10-25T13:14:28.723118Z 1 [Note] [MY-013040] [InnoDB] Will create 2 new undo tablespaces. 2021-10-25T13:14:28.727891Z 1 [Note] [MY-012896] [InnoDB] Creating UNDO Tablespace ./undo_001 2021-10-25T13:14:28.727918Z 1 [Note] [MY-012897] [InnoDB] Setting file ./undo_001 size to 16 MB 2021-10-25T13:14:28.727931Z 1 [Note] [MY-012898] [InnoDB] Physically writing the file full 2021-10-25T13:14:28.773895Z 1 [Note] [MY-012896] [InnoDB] Creating UNDO Tablespace ./undo_002 2021-10-25T13:14:28.773924Z 1 [Note] [MY-012897] [InnoDB] Setting file ./undo_002 size to 16 MB 2021-10-25T13:14:28.773939Z 1 [Note] [MY-012898] [InnoDB] Physically writing the file full 2021-10-25T13:14:28.819879Z 1 [Note] [MY-012915] [InnoDB] Created 2 undo tablespaces. 2021-10-25T13:14:28.820035Z 1 [Note] [MY-011980] [InnoDB] GTID recovery trx_no: 0 2021-10-25T13:14:28.821292Z 1 [Note] [MY-013776] [InnoDB] Parallel initialization of rseg complete 2021-10-25T13:14:28.821334Z 1 [Note] [MY-013777] [InnoDB] Time taken to initialize rseg using 4 thread: 1301 ms. 2021-10-25T13:14:28.821457Z 1 [Note] [MY-012923] [InnoDB] Creating shared tablespace for temporary tables 2021-10-25T13:14:28.821541Z 1 [Note] [MY-012265] [InnoDB] Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ... 2021-10-25T13:14:28.855084Z 1 [Note] [MY-012266] [InnoDB] File './ibtmp1' size is now 12 MB. 2021-10-25T13:14:28.855280Z 1 [Note] [MY-013627] [InnoDB] Scanning temp tablespace dir:'./#innodb_temp/' 2021-10-25T13:14:28.876139Z 1 [Note] [MY-013018] [InnoDB] Created 128 and tracked 128 new rollback segment(s) in the temporary tablespace. 128 are now active. 2021-10-25T13:14:28.879133Z 1 [Note] [MY-013018] [InnoDB] Created 128 and tracked 128 new rollback segment(s) in undo tablespace number 1. 128 are now active. 2021-10-25T13:14:28.882117Z 1 [Note] [MY-013018] [InnoDB] Created 128 and tracked 128 new rollback segment(s) in undo tablespace number 2. 128 are now active. 2021-10-25T13:14:29.041194Z 1 [Note] [MY-012976] [InnoDB] 8.0.27 started; log sequence number 5108694 2021-10-25T13:14:29.047921Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2021-10-25T13:14:29.050673Z 1 [Note] [MY-011088] [Server] Data dictionary initializing version '80023'. 2021-10-25T13:14:29.488462Z 1 [Note] [MY-010337] [Server] Created Data Dictionary for upgrade 2021-10-25T13:14:29.504712Z 0 [Note] [MY-011332] [Server] Plugin mysqlx reported: 'IPv6 is available' 2021-10-25T13:14:29.506309Z 0 [Note] [MY-011323] [Server] Plugin mysqlx reported: 'X Plugin ready for connections. bind-address: '::' port: 33060' 2021-10-25T13:14:29.506334Z 0 [Note] [MY-011323] [Server] Plugin mysqlx reported: 'X Plugin ready for connections. socket: '/tmp/mysqlx.sock'' 2021-10-25T13:14:30.461340Z 2 [System] [MY-011003] [Server] Finished populating Data Dictionary tables with data. 2021-10-25T13:14:30.466151Z 2 [Note] [MY-011008] [Server] Finished migrating TABLE statistics data. 2021-10-25T13:14:30.468760Z 2 [Note] [MY-011008] [Server] Finished migrating TABLE statistics data. 2021-10-25T13:14:31.330058Z 2 [Note] [MY-010006] [Server] Using data dictionary with version '80023'. 2021-10-25T13:14:31.747864Z 5 [System] [MY-013381] [Server] Server upgrade from '50700' to '80027' started. 2021-10-25T13:14:31.748907Z 5 [Note] [MY-013386] [Server] Running queries to upgrade MySQL server. 2021-10-25T13:14:35.682638Z 5 [Note] [MY-013387] [Server] Upgrading system table data. 2021-10-25T13:14:35.991732Z 5 [Note] [MY-013385] [Server] Upgrading the sys schema. 2021-10-25T13:14:36.595261Z 5 [Note] [MY-013400] [Server] Upgrade of help tables started. 2021-10-25T13:14:36.720038Z 5 [Note] [MY-013400] [Server] Upgrade of help tables completed. 2021-10-25T13:14:36.720157Z 5 [Note] [MY-013394] [Server] Checking 'mysql' schema. 2021-10-25T13:14:36.844834Z 5 [Note] [MY-013394] [Server] Checking 'sys' schema. 2021-10-25T13:14:36.860520Z 5 [Note] [MY-013394] [Server] Checking 'testdb' schema. 2021-10-25T13:14:36.861321Z 5 [Warning] [MY-013382] [Server] Table 'testdb.testTable1' requires repair. 2021-10-25T13:14:36.861464Z 5 [ERROR] [MY-013383] [Server] Table 'testdb.testTable1' repair failed. 2021-10-25T13:14:36.865703Z 5 [System] [MY-013381] [Server] Server upgrade from '50700' to '80027' completed. 2021-10-25T13:14:36.910440Z 0 [Note] [MY-010902] [Server] Thread priority attribute setting in Resource Group SQL shall be ignored due to unsupported platform or insufficient privilege. 2021-10-25T13:14:36.922898Z 0 [Note] [MY-012487] [InnoDB] DDL log recovery : begin 2021-10-25T13:14:36.923214Z 0 [Note] [MY-012488] [InnoDB] DDL log recovery : end 2021-10-25T13:14:36.923548Z 0 [Note] [MY-011946] [InnoDB] Loading buffer pool(s) from /export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301/ib_buffer_pool 2021-10-25T13:14:36.923692Z 0 [Note] [MY-011946] [InnoDB] Buffer pool(s) load completed at 211025 15:14:36 2021-10-25T13:14:36.933493Z 0 [Note] [MY-010913] [Server] You have not provided a mandatory server-id. Servers in a replication topology must have unique server-ids. Please refer to the proper server start-up parameters documentation. 2021-10-25T13:14:36.935026Z 0 [Note] [MY-010182] [Server] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them. 2021-10-25T13:14:36.935051Z 0 [Note] [MY-010304] [Server] Skipping generation of SSL certificates as certificate files are present in data directory. 2021-10-25T13:14:36.935071Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1 is enabled for channel mysql_main 2021-10-25T13:14:36.935087Z 0 [Warning] [MY-013746] [Server] A deprecated TLS version TLSv1.1 is enabled for channel mysql_main 2021-10-25T13:14:36.935994Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2021-10-25T13:14:36.936052Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2021-10-25T13:14:36.936074Z 0 [Note] [MY-010308] [Server] Skipping generation of RSA key pair through --sha256_password_auto_generate_rsa_keys as key files are present in data directory. 2021-10-25T13:14:36.936090Z 0 [Note] [MY-010308] [Server] Skipping generation of RSA key pair through --caching_sha2_password_auto_generate_rsa_keys as key files are present in data directory. 2021-10-25T13:14:36.936251Z 0 [Note] [MY-010252] [Server] Server hostname (bind-address): '*'; port: 3306 2021-10-25T13:14:36.936286Z 0 [Note] [MY-010253] [Server] IPv6 is available. 2021-10-25T13:14:36.936303Z 0 [Note] [MY-010264] [Server] - '::' resolves to '::'; 2021-10-25T13:14:36.936320Z 0 [Note] [MY-010251] [Server] Server socket created on IP: '::'. 2021-10-25T13:14:36.938242Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/export/home/tmp' in the path is accessible to all OS users. Consider choosing a different directory. 2021-10-25T13:14:36.949453Z 0 [Note] [MY-011025] [Repl] Failed to start slave threads for channel ''. 2021-10-25T13:14:36.950951Z 8 [Note] [MY-010051] [Server] Event Scheduler: scheduler thread started with id 8 2021-10-25T13:14:36.951184Z 0 [Note] [MY-011240] [Server] Plugin mysqlx reported: 'Using SSL configuration from MySQL Server' 2021-10-25T13:14:36.951669Z 0 [Note] [MY-011243] [Server] Plugin mysqlx reported: 'Using OpenSSL for TLS connections' 2021-10-25T13:14:36.951790Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /tmp/mysqlx.sock 2021-10-25T13:14:36.952020Z 0 [System] [MY-010931] [Server] /export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64/bin/mysqld: ready for connections. Version: '8.0.27' socket: '/tmp/mysql_ushastry.sock' port: 3306 MySQL Community Server - GPL. ## restart 8.0.27 and try to access mysql> shutdown; Query OK, 0 rows affected (0.00 sec) mysql> \q Bye [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ [1]+ Done bin/mysqld --no-defaults --basedir=$PWD --datadir=/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301 --core-file --socket=/tmp/mysql_ushastry.sock --port=3306 --log-error=/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301/log.err --log-error-verbosity=3 --secure-file-priv=/tmp/ --upgrade=FORCE 2>&1 [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ bin/mysqld --no-defaults --basedir=$PWD --datadir=/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301 --core-file --socket=/tmp/mysql_ushastry.sock --port=3306 --log-error=/export/home/tmp/ushastry/mysql-5.7.36-linux-glibc2.12-x86_64/105301/log.err --log-error-verbosity=3 --secure-file-priv=/tmp/ 2>&1 & [1] 30602 [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ [umshastr@support-cluster03:/export/home/tmp/ushastry/mysql-8.0.27-linux-glibc2.12-x86_64]$ bin/mysql -uroot -S /tmp/mysql_ushastry.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 7 Server version: 8.0.27 MySQL Community Server - GPL Copyright (c) 2000, 2021, 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> use testdb 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 tables; +------------------+ | Tables_in_testdb | +------------------+ | testTable1 | +------------------+ 1 row in set (0.00 sec) mysql> SELECT * from testTable1; ERROR 1034 (HY000): Incorrect key file for table 'testTable1'; try to repair it mysql> mysql> show errors; +-------+------+-------------------------------------------------------------+ | Level | Code | Message | +-------+------+-------------------------------------------------------------+ | Error | 1034 | Incorrect key file for table 'testTable1'; try to repair it | +-------+------+-------------------------------------------------------------+ 1 row in set (0.00 sec) mysql> show warnings; +-------+------+-------------------------------------------------------------+ | Level | Code | Message | +-------+------+-------------------------------------------------------------+ | Error | 1034 | Incorrect key file for table 'testTable1'; try to repair it | +-------+------+-------------------------------------------------------------+ 1 row in set (0.01 sec) mysql> REPAIR TABLE testTable1; +-------------------+--------+----------+-------------------------------------------------------------+ | Table | Op | Msg_type | Msg_text | +-------------------+--------+----------+-------------------------------------------------------------+ | testdb.testTable1 | repair | Error | Incorrect key file for table 'testTable1'; try to repair it | | testdb.testTable1 | repair | error | Corrupt | +-------------------+--------+----------+-------------------------------------------------------------+ 2 rows in set (0.00 sec) mysql> REPAIR TABLE testTable1 USE_FRM; +-------------------+--------+----------+------------------+ | Table | Op | Msg_type | Msg_text | +-------------------+--------+----------+------------------+ | testdb.testTable1 | repair | Warning | Can't open table | | testdb.testTable1 | repair | error | Corrupt | +-------------------+--------+----------+------------------+ 2 rows in set (0.00 sec) mysql> SELECT * from testTable1; ERROR 1034 (HY000): Incorrect key file for table 'testTable1'; try to repair it mysql>