MySQL Skip-Grant-Tables: Password Reset Guide
In MySQL, skip-grant-tables is a configuration option that allows you to start the MySQL server without verifying the grant tables, enabling you to log in as a privileged user and modify or reset other users’ passwords. This option is mainly used to temporarily bypass the grant tables for password reset when unable to log in to the MySQL server. After starting the MySQL server with the skip-grant-tables option, you can modify the password field directly in the mysql.user table or execute the FLUSH PRIVILEGES statement to change passwords. However, it is important to note that anyone can log in as a privileged user without password verification after starting the MySQL server with skip-grant-tables, so it should be used with caution and normal authorization mechanisms should be restored as soon as possible.