The following presumes your MySQL installation is running on Linux, but the general concepts apply to any operating system. …
Let your distribution's package manager install updated MySQL packages unless you have reason to install them manually.
Once installed, as root run mysql_upgrade –password=PWD, naturally supplying your database password. Inspect the output for errors.