Hello,
I upgrade MySQL-Server 5.7.40 to MySQL-Server 8.0 under FreeBSD 13.1.
service mysql-server start throws following errors:
Then I deleted ib_logfile0 and ib_logfile1 as described on http://dev.mysql.com/doc/refman/8.0/en/upgrading.html and restarted MySQL Server 8:
Unfortunately I had removed "clipbucket" database because I did not need it (only a test).
I read that MySQL Server 8 would do the necessary upgrade procedures itself at startup and that a mysql_upgrade was no longer necessary. What can/must I do so that MySQL Server 8 starts up with the existing databases (directories) and does not bother with any information about databases that no longer exist?
Thanks in advance and kind regards
Sidney2017
I upgrade MySQL-Server 5.7.40 to MySQL-Server 8.0 under FreeBSD 13.1.
service mysql-server start throws following errors:
Code:
2023-07-04T23:29:35.6NZ mysqld_safe Logging to '/var/log/mysql/error.log'.
2023-07-04T23:29:35.6NZ mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
2023-07-04T23:29:35.281219Z 0 [System] [MY-010116] [Server] /usr/local/libexec/mysqld (mysqld 8.0.32) starting as process 67302
2023-07-04T23:29:35.468311Z 1 [System] [MY-011012] [Server] Starting upgrade of data directory.
2023-07-04T23:29:35.468340Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
2023-07-04T23:29:35.590292Z 1 [ERROR] [MY-012526] [InnoDB] Upgrade is not supported after a crash or shutdown with innodb_fast_shutdown = 2. This redo log was created with MySQL 5.7.40, and it appears logically non empty. Please follow the instructions at http://dev.mysql.com/doc/refman/8.0/en/upgrading.html
2023-07-04T23:29:35.590329Z 1 [ERROR] [MY-012930] [InnoDB] Plugin initialization aborted with error Generic error.
2023-07-04T23:29:35.590747Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.
2023-07-04T23:29:35.590914Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2023-07-04T23:29:35.590939Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-07-04T23:29:35.593030Z 0 [System] [MY-010910] [Server] /usr/local/libexec/mysqld: Shutdown complete (mysqld 8.0.32) Source distribution.
Then I deleted ib_logfile0 and ib_logfile1 as described on http://dev.mysql.com/doc/refman/8.0/en/upgrading.html and restarted MySQL Server 8:
Code:
2023-07-04T23:36:03.932139Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932155Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932165Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_1.ibd' OS error: 71
2023-07-04T23:36:03.932176Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_1` because it could not be opened.
2023-07-04T23:36:03.932200Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932210Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932219Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_2.ibd' OS error: 71
2023-07-04T23:36:03.932232Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_2` because it could not be opened.
2023-07-04T23:36:03.932256Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932265Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932274Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_3.ibd' OS error: 71
2023-07-04T23:36:03.932286Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_3` because it could not be opened.
2023-07-04T23:36:03.932310Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932319Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932328Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_4.ibd' OS error: 71
2023-07-04T23:36:03.932341Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_4` because it could not be opened.
2023-07-04T23:36:03.932363Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932374Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932382Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_5.ibd' OS error: 71
2023-07-04T23:36:03.932395Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_5` because it could not be opened.
2023-07-04T23:36:03.932421Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932430Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932439Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_6.ibd' OS error: 71
2023-07-04T23:36:03.932452Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_0000000000007540_INDEX_6` because it could not be opened.
2023-07-04T23:36:03.932476Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932485Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932494Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_BEING_DELETED.ibd' OS error: 71
2023-07-04T23:36:03.932506Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_BEING_DELETED` because it could not be opened.
2023-07-04T23:36:03.932529Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932539Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932548Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_BEING_DELETED_CACHE.ibd' OS error: 71
2023-07-04T23:36:03.932560Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_BEING_DELETED_CACHE` because it could not be opened.
2023-07-04T23:36:03.932586Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932596Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932604Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_CONFIG.ibd' OS error: 71
2023-07-04T23:36:03.932617Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_CONFIG` because it could not be opened.
2023-07-04T23:36:03.932642Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932652Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932660Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_DELETED.ibd' OS error: 71
2023-07-04T23:36:03.932672Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_DELETED` because it could not be opened.
2023-07-04T23:36:03.932697Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932707Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932716Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fc4_DELETED_CACHE.ibd' OS error: 71
2023-07-04T23:36:03.932728Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fc4_DELETED_CACHE` because it could not be opened.
2023-07-04T23:36:03.932754Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
2023-07-04T23:36:03.932764Z 1 [ERROR] [MY-012593] [InnoDB] The error means the system cannot find the path specified.
2023-07-04T23:36:03.932772Z 1 [ERROR] [MY-012216] [InnoDB] Cannot open datafile for read-only: './clipbucket/FTS_0000000000002fdf_0000000000007568_INDEX_1.ibd' OS error: 71
2023-07-04T23:36:03.932785Z 1 [Warning] [MY-012019] [InnoDB] Ignoring tablespace `clipbucket/FTS_0000000000002fdf_0000000000007568_INDEX_1` because it could not be opened.
2023-07-04T23:36:03.932809Z 1 [ERROR] [MY-012592] [InnoDB] Operating system error number 2 in a file operation.
...
...
2023-07-04T23:36:03.992868Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
2023-07-04T23:36:06.673260Z 1 [ERROR] [MY-011006] [Server] Got error 197 from SE while migrating tablespaces.
2023-07-04T23:36:06.689616Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2023-07-04T23:36:06.689652Z 0 [ERROR] [MY-010119] [Server] Aborting
2023-07-04T23:36:11.137744Z 0 [System] [MY-010910] [Server] /usr/local/libexec/mysqld: Shutdown complete (mysqld 8.0.32) Source distribution
Unfortunately I had removed "clipbucket" database because I did not need it (only a test).
I read that MySQL Server 8 would do the necessary upgrade procedures itself at startup and that a mysql_upgrade was no longer necessary. What can/must I do so that MySQL Server 8 starts up with the existing databases (directories) and does not bother with any information about databases that no longer exist?
Thanks in advance and kind regards
Sidney2017