Use the MySQL Administrator to disable the grant tables (
Figure A.13).
This option tells MySQL to run without concern for user and access privileges. While this is an obvious security issue, it's the only way to reset the
root password. This, of course, does assume that the MySQL Administrator has remembered your administrative password (although it's unrecoverable by you). See Chapter 13, "MySQL Administration," for more information on the MySQL Administrator, in case you're not familiar with it.
Checking the box here will write the value to the proper option file. The new valuedisabling the grant tableswill take effect the next time MySQL is started.
If you cannot use the MySQL Administrator to set this option, then you must start MySQL from the command line (in Step 3), using the
--skip-grant-tables argument. See Chapter 2 for ways to start MySQL manually. Alternatively, you could manually edit a MySQL option file (see Chapter 13) to accomplish the same effect.