Update the grant tables, if necessary.
Sometimes new versions of MySQL will require changes to the
mysql database. A script called
mysql_fix_privilege_tables will be installed for this purpose (check your
scripts directory).
As a rule of thumb, if upgrading from one major version to another (like from 4.1 to 5.0), you'll have to update the grant tables.
On Unix and Mac OS X, you can run this script from within the MySQL directory, using this command:
./scripts/mysql_fix_privilege_tables --password=rootUserPassword
On Windows, you'll want to run the
mysql_fix_privilege_tables.sql file in the
mysql client (which will be discussed in the next chapter). The command would be something like:
SOURCE C:/Program Files/MySQL/MySQL Server 5.0/scripts/mysql_fix_privilege_tables.sql
On any platform, if you see error warnings about duplicate column names, you can safely ignore those.
After updating the grant tables, you'll need to stop and restart MySQL one more time.