content_image/757507.jpg
Unless invoked with the --skip-sys-schema  option, mysql_upgrade  installs the sys  schema if it is not installed, and upgrades it to the current version otherwise. An error occurs if a sys  schema exists but has no version  view, on the assumption that its absence indicates a user-created schema: 

A sys schema exists with no sys.version view. If you have a user created sys schema, this must be renamed for the upgrade to succeed. 

To upgrade in this case, remove or rename the existing sys  schema first. 

mysql_upgrade  supports the following options, which can be specified on the command line or in the [mysql_upgrade]  and [client]  groups of an option file. For information about option files used by MySQL programs, see Section 4.2.2.2, “Using Option Files” . 

<img src='content_image/757507.jpg'>

