The problem is in the way how secondary key definitions are restored in "skip_secondary_keys()".
Originally introduced in commit ecb27e6 (Bug #1081016: mysqldump --innodb-optimize-keys may produce invalid SQL with explicitly named FK constraints). https://github.com/percona-ysorokin/percona-server/commit/ecb27e6af65e9ceb4392db0e9c51f43654201688
The problem is in the way how secondary key definitions are restored in "skip_secondary _keys() ".
Originally introduced in commit ecb27e6 optimize- keys may produce invalid SQL with explicitly named FK constraints). /github. com/percona- ysorokin/ percona- server/ commit/ ecb27e6af65e9ce b4392db0e9c51f4 3654201688
(Bug #1081016: mysqldump --innodb-
https:/