Skip to content

Instantly share code, notes, and snippets.

@srl295
Created March 2, 2023 16:28
Show Gist options
  • Save srl295/75f8060e01065bfa6a6159b9361652d1 to your computer and use it in GitHub Desktop.
Save srl295/75f8060e01065bfa6a6159b9361652d1 to your computer and use it in GitHub Desktop.
failed upgrade from mysql 8.0.30 to 8.0.32
$ mysqld --upgrade=FORCE
[System] [MY-010116] [Server] /usr/local/Cellar/mysql/8.0.32/bin/mysqld (mysqld 8.0.32) starting as process 43318
[System] [MY-013577] [InnoDB] InnoDB initialization has ended.
[System] [MY-013381] [Server] Server upgrade from '80030' to '80032' started.
[Warning] [MY-011836] [InnoDB] sdi_delete failed: Record Doesn't exist: tablespace_id: 1 Key: 1 5997
[ERROR] [MY-013178] [Server] Execution of server-side SQL statement '-- Copyright (c) 2018, 2022, Oracle and/or its affiliates. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; version 2 of the License. -- -- This program is distributed in the hope that it will be useful, -- but WITHOUT ANY WARRANTY; without even the implied warranty of -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -- GNU General Public License for more details. -- -- You should have received a copy of the GNU General Public License -- along with this program; if not, write to the Free Software -- Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -- -- Alters the sys_config table for upgrades -- ALTER TABLE sys_config CHARACTER SET utf8mb4; ' failed with error code = 3958, error message = 'Failed to delete sdi for sys.sys_config in sys/sys_config due to missing record.'.
[ERROR] [MY-013380] [Server] Failed to upgrade server.
[ERROR] [MY-010119] [Server] Aborting
@IanEarnest
Copy link

I have the same error - "Server upgrade from '80039' to '80040' started." and such - how did you solve this issue?

@srl295
Copy link
Author

srl295 commented Dec 15, 2024 via email

@IanEarnest
Copy link

I seem to have fixed my setup by doing a clean restore - my steps were:

  • mysql backup
  • removed /var/lib/mysql/*
  • used "mysqld --initialize --console" for a fresh database setup
  • mysql restore

@srl295
Copy link
Author

srl295 commented Dec 18, 2024

that rings a bell. (my memory is…) it wasn't my data that was breaking, it was some kind of admin table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment