To hack the local MySQL database password:
1. Log into the system with the system administrator.
2. Stop the MySQL service.
Windows: Run net stop MySQL shut down database
3. Go to the Command window and enter the MySQL installation directory, for example, my installation directory is c:\mysql, enter C:\mysql\bin
4. Skip permission Check to start MySQL,
C:\mysql\bin>mysqld-nt––skip-grant-tables
Or: C:\mysql\bin>mysqld––skip-grant-tables
Mysqld.exe is a Microsoft Windows MySQL Server database server related program. Mysqld-nt.exe is a MySQL daemon database service related program.
5.[not verified]
Reopen a window
Enter the C:\mysql\bin directory and set the root's new MySQL database password
C:\mysql\bin>mysqladmin-u root flush-privileges password "NewPassword"
C:\mysql\bin>mysqladmin-u root-p shutdown
Replace NewPassword with your new password
Hack local MySQL database password