mysql_upgrade
mysql_upgrade optionsUse this utility after upgrading to a new version of MySQL. It
checks all tables for version incompatibilities or problems, and
attempts to repair or correct tables if possible. It also updates tables
in the mysql database for new privileges and other
factors available in the newer version of MySQL. Tables that are checked
are tagged for the new version so they won’t be checked twice. The
utility notes the version number in the mysql_upgrade_info file located in the
data directory for MySQL. This utility replaces the mysql_fix_privilege_tables utility
because it performs the same function and more.
--basedir=pathThis option specifies the base directory of the MySQL server.
--datadir=pathThis option specifies the data directory of the MySQL server.
--debug-checkThis option writes debugging information to the log when the utility ends. It’s available as of version 5.1.21 of MySQL.
--debug-info, -TThis option writes debugging information and CPU and memory usage information to the log after the utility ends.
--forceThis option forces the utility to check tables despite the mysql_upgrade_info file indicating that the tables are marked the same as the version noted in that file.
--help, -?,
-IThis option displays help information about the utility.
--password=password,
-p passwordThis option provides the password of the user logging into the server.
--user=user,
-u userThis option provides the username for logging into the server. If the option is not given, the root user is assumed by default.
--verboseThis option displays more information from the utility.