Говорят вы не первый
The command is run as follows.
$ mysql_upgrade
If you're getting an access denied error, pass along the username + password.
$ mysql_upgrade
mysqlcheck: Got error: 1045: Access denied for user 'root'@'localhost' (using password: NO) when trying to connect
FATAL ERROR: Upgrade failed
$ mysql_upgrade -u root -p