Skip to content

Instantly share code, notes, and snippets.

@Gaurav8757
Created March 29, 2026 07:55
Show Gist options
  • Select an option

  • Save Gaurav8757/8a52c0e2205470ec139dcb6babf9d859 to your computer and use it in GitHub Desktop.

Select an option

Save Gaurav8757/8a52c0e2205470ec139dcb6babf9d859 to your computer and use it in GitHub Desktop.
If you forgot root password of mysql workbench
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