Created
March 29, 2026 07:55
-
-
Save Gaurav8757/8a52c0e2205470ec139dcb6babf9d859 to your computer and use it in GitHub Desktop.
If you forgot root password of mysql workbench
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Open CMD as administrator | |
| 2. taskkill /F /IM mysqld.exe >> ERROR: The process "mysqld.exe" not found. | |
| Step_1 >> cd "C:\Program Files\MySQL\MySQL Server 8.0\bin" | |
| Step_2 >> mysqld --initialize-insecure // Initialize(fresh setup) | |
| Step_3 >> mysqld --install MySQL80 // service installed | |
| Step_4 >> net start MySQL80 // start services | |
| Step_5 >> mysql -u root // login to mysql | |
| Step_6 >> ALTER USER 'root'@'localhost' IDENTIFIED BY 'root123'; // Password set karo | |
| Step_7 >> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment