maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #06246
Re: mysql_upgrade fails
-
To:
"maria-discuss@xxxxxxxxxxxxxxxxxxx" <maria-discuss@xxxxxxxxxxxxxxxxxxx>
-
From:
Majed Zouhairy <majedzouhairy@xxxxxxxxxxx>
-
Date:
Wed, 20 Jul 2022 07:34:04 +0000
-
Accept-language:
en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cmd1se/DhBap2GVjnw5dbnc3i7f/FBy5dmVoN5lT64M=; b=AmTALq8ot4ZZLIqjZCg63iwJ8m8oWR6pytA0k5nHgS8FwufzpFXKUmg/LekWgaHu1e5UcrNJ11sAD63SjlIYL0xi0X+nfMbyYAIvRklAyqmrf04aEGUZCC+5rWSwt4Nbc1nOB8W3nTYWgXMxH8Ldtuyhh/mbkD+7Tssj7IgTOvZptEHjyqiyTkEM3eN7f7HsjgZ0w2b5BYug65+2vkzzLtYUXmo/wzXq2RXbrRXaRUnzjNIr3Hg7bk638AJzxUvIh8AOUgRYuZp+/SH5uRaUQSYQCPs6Zp9axWx3P0AzZy412iL5pF/6tiwK6ojIXyFP5diimnSS26lwynK2iP85Xw==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=I5UeODDEX8vrauptwVWvD/jvKg1t+NT15Oc0YWYN1bIf0WZGK2xrk/qfB24nJahoo7+CIXQz/kI4eNnL1eShEneHXAnqKsOCnaPPpKbYunAaF3/ndOvbK/W4b1yHVXZugJ2LuHSY9RL0OSfKwy/6CqndaRtlzfTgg8tPWiyYAfXMwu2WtdrTwLxvgwwAWXkt9ODcOcp9RrbqrBVJ8XAtZBS5WP3LQoOmg6J7nlo2MsugX0U4ujS9THjkss2u+fcjFE1Wc5sUGo5iUuTw+jpMRKmNGA/4NejPRrMCQg5degnKr0lpI+H1a3lHu1fL0rckMERmGcnHWKJOLXyuYVm4Jw==
-
In-reply-to:
<AS8P193MB2096520F64AE2EFA6EAD4277A38F9@AS8P193MB2096.EURP193.PROD.OUTLOOK.COM>
-
Msip_labels:
-
Thread-index:
AQHXNqnf/uuxD6kAw0Gy+X06d9RLEqq+7LAAgsmCndGAATk+QQ==
-
Thread-topic:
[Maria-discuss] mysql_upgrade fails
on centos 8, upgrade form mraidb 10.3 to 10.6 fails with:
sudo mysql_upgrade -u root -p
Enter password:
Major version upgrade detected from 10.3.17-MariaDB to 10.6.8-MariaDB. Check required!
Phase 1/7: Checking and upgrading mysql database
Processing databases
mysql
mysql.column_stats OK
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.index_stats OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.roles_mapping OK
mysql.servers OK
mysql.table_stats OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views
Phase 4/7: Running 'mysql_fix_privilege_tables'
ERROR 1005 (HY000) at line 694: Can't create table `mysql`.`innodb_table_stats` (errno: 184 "Tablespace already exists")
ERROR 1005 (HY000) at line 698: Can't create table `mysql`.`innodb_index_stats` (errno: 184 "Tablespace already exists")
ERROR 1005 (HY000) at line 702: Can't create table `mysql`.`transaction_registry` (errno: 184 "Tablespace already exists")
ERROR 1005 (HY000) at line 774: Can't create table `mysql`.`gtid_slave_pos` (errno: 184 "Tablespace already exists")
FATAL ERROR: Upgrade failed
________________________________
From: Vicențiu Ciorbaru <cvicentiu@xxxxxxxxx>
Sent: Wednesday, April 21, 2021 3:51 PM
To: Majed Zouhairy <majedzouhairy@xxxxxxxxxxx>
Cc: maria-discuss@xxxxxxxxxxxxxxxxxxx <maria-discuss@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Maria-discuss] mysql_upgrade fails
Hi Majed,
What MariaDB version is this? What is the previous version and what is the current version you are upgrading to?
Is this from a linux distro, or where did you get the MariaDB binary from? If it's a distro, which one?
Vicențiu
On Wed, 21 Apr 2021 at 15:31, Majed Zouhairy <majedzouhairy@xxxxxxxxxxx<mailto:majedzouhairy@xxxxxxxxxxx>> wrote:
in last time's upgrade and today i got:
sudo mysql_upgrade -u root -p
Enter password:
Phase 1/7: Checking and upgrading mysql database
Processing databases
mysql
mysql.column_stats OK
mysql.columns_priv OK
mysql.db OK
mysql.event OK
mysql.func OK
mysql.help_category OK
mysql.help_keyword OK
mysql.help_relation OK
mysql.help_topic OK
mysql.host OK
mysql.index_stats OK
mysql.plugin OK
mysql.proc OK
mysql.procs_priv OK
mysql.proxies_priv OK
mysql.roles_mapping OK
mysql.servers OK
mysql.table_stats OK
mysql.tables_priv OK
mysql.time_zone OK
mysql.time_zone_leap_second OK
mysql.time_zone_name OK
mysql.time_zone_transition OK
mysql.time_zone_transition_type OK
mysql.user OK
Phase 2/7: Installing used storage engines... Skipped
Phase 3/7: Fixing views
Phase 4/7: Running 'mysql_fix_privilege_tables'
ERROR 1813 (HY000) at line 77: Tablespace for table '`mysql`.`innodb_table_stats`' exists. Please DISCARD the tablespace before IMPORT
ERROR 1813 (HY000) at line 81: Tablespace for table '`mysql`.`innodb_index_stats`' exists. Please DISCARD the tablespace before IMPORT
ERROR 1813 (HY000) at line 85: Tablespace for table '`mysql`.`transaction_registry`' exists. Please DISCARD the tablespace before IMPORT
ERROR 1813 (HY000) at line 153: Tablespace for table '`mysql`.`gtid_slave_pos`' exists. Please DISCARD the tablespace before IMPORT
ERROR 1146 (42S02) at line 642: Table 'mysql.innodb_index_stats' doesn't exist
ERROR 1243 (HY000) at line 643: Unknown prepared statement handler (stmt) given to EXECUTE
ERROR 1146 (42S02) at line 645: Table 'mysql.innodb_table_stats' doesn't exist
ERROR 1243 (HY000) at line 646: Unknown prepared statement handler (stmt) given to EXECUTE
ERROR 1146 (42S02) at line 650: Table 'mysql.innodb_index_stats' doesn't exist
ERROR 1146 (42S02) at line 654: Table 'mysql.innodb_table_stats' doesn't exist
ERROR 1146 (42S02) at line 657: Table 'mysql.innodb_table_stats' doesn't exist
FATAL ERROR: Upgrade failed
what to do?
_______________________________________________
Mailing list: https://launchpad.net/~maria-discuss
Post to : maria-discuss@xxxxxxxxxxxxxxxxxxx<mailto:maria-discuss@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~maria-discuss
More help : https://help.launchpad.net/ListHelp
Follow ups
References