Description:
Running queries to upgrade MySQL server.
mysql_upgrade: [ERROR] 1146: Table 'mysql.gtid_executed' doesn't exist
mysql_upgrade: [ERROR] 1243: Unknown prepared statement handler (stmt) given to EXECUTE
mysql_upgrade: [ERROR] 1243: Unknown prepared statement handler (stmt) given to DEALLOCATE PREPARE
mysql_upgrade: [ERROR] 1146: Table 'mysql.server_cost' doesn't exist
mysql_upgrade: [ERROR] 1146: Table 'mysql.server_cost' doesn't exist
mysql_upgrade: [ERROR] 1146: Table 'mysql.engine_cost' doesn't exist
mysql_upgrade: [ERROR] 1146: Table 'mysql.engine_cost' doesn't exist
mysql_upgrade: [ERROR] 1146: Table 'mysql.gtid_executed' doesn't exist
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\help_topic' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\help_category' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\help_relation' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\help_keyword' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\plugin' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\servers' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\time_zone' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\time_zone_leap_second' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\time_zone_name' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\time_zone_transition' (errno: 184 - Tablespace already exists)
mysql_upgrade: [ERROR] 1025: Error on rename of '.\mysql\#sql-1fec_8' to '.\mysql\time_zone_transition_type' (errno: 184 - Tablespace already exists)
How to repeat:
run mysql_upgrade after upgrade from 5.6 to 5.7