Home >Database >Mysql Tutorial >How to Reset MySQL Root Password by Starting MySQL with `--skip-grant-tables` in Windows?
Starting MySQL with --skip-grant-tables in Windows
When your root user is locked out of your database, you may need to regain full privileges. This article provides a step-by-step guide on how to start MySQL with the --skip-grant-tables flag in Windows.
Procedure:
Modify my.ini Configuration File:
Locate the my.ini configuration file:
Once MySQL is started with the --skip-grant-tables flag, you can log into your database without a password. This allows you to reset the root user's password and restore full privileges.
The above is the detailed content of How to Reset MySQL Root Password by Starting MySQL with `--skip-grant-tables` in Windows?. For more information, please follow other related articles on the PHP Chinese website!