Bug #94763 mysql_upgrade should return 0 unconditionally when being deprecated
Submitted: 25 Mar 2019 8:18 Modified: 7 May 2019 9:35
Reporter: Sivert Sørumgård Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Data Dictionary Severity:S3 (Non-critical)
Version:8.0.16 OS:Any
Assigned to: CPU Architecture:Any

[25 Mar 2019 8:18] Sivert Sørumgård
Description:
Since the server now executes the statements previously executed by mysql_upgrade, the client is now deprecated, and returns the value 2, meaning that the server is already upgraded. The intention of returning a value != 0 was to make users aware of the deprecation. However, there are indications that this results in undesirable breakage of toolchains, and hence, we change the client to return 0 unconditionally.

How to repeat:
Run the mysql_upgrade client from 8.0.16, check its return value.

Suggested fix:
Change return value from 2 to 0.