Bug #106908 Mysql_upgrade crashes with error
Submitted: 5 Apr 2022 10:45 Modified: 5 Apr 2022 16:48
Reporter: udhayan D Email Updates:
Status: Unsupported Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:MySQL 8.0.28 OS:Linux (RHEL7)
Assigned to: CPU Architecture:x86

[5 Apr 2022 10:45] udhayan D
Description:
Hi,

Recently upgraded Mysql from 8.0.20 to 8.0.28 ( removed the older rpms and installed newer ones) and started Mysqld in RHEL7. All seems good except that I see below error when trying to run mysql_upgrade

/usr/bin/mysql_upgrade -uroot -p >mysql8028upgrade.txt
terminate called after throwing an instance of 'std::logic_error'
  what():  basic_string::_S_construct null not valid
Aborted (core dumped)

I know from mysql 8 onwards we dont need to run mysql_upgrade explicitly as the mysql service while starting takes care of the upgrade. But why am I getting a strange error.

I had run mysql_upgrade in mysql 8 versions before and never faced this error. Can i consider the mysql upgrade successful or is this related to any other dependent package or is this a bug ? Is there any corrective action that has to be taken

How to repeat:
Run mysql_upgrade for mysql 8.0.28 in RHEL7 machine
[5 Apr 2022 12:05] MySQL Verification Team
Hi Mr. D,

Thank you for your bug report.

mysql_upgrade client program is now deprecated.

Since it is not supposed to be used, we are no longer maintaining it.

Unsupported.
[5 Apr 2022 16:48] udhayan D
ok Thanks.