- Stop the
MySQL 8.0service from services - Go to path C:\Program Files\MySQL\MySQL Server 8.0\bin and open
cmd - Run
mysqld --console --skip-grant-tables --shared-memory - Open new
cmdin the same path - Run following commands
mysql -u rootselect authentication_string,host from mysql.user where user='root';UPDATE mysql.user SET authentication_string='' WHERE user='root';- Now close both the
cmd. - Try to start the MySQL 8.0 service.
- Connect using username as root & password as blank.
- Change the password from the user managerment.
Forked from pishangujeniya/reset-mysql-8-root-password-windows.md
Created
October 29, 2021 09:07
-
-
Save i-amolo/6af4741638fc8095e36cc72ef45cca00 to your computer and use it in GitHub Desktop.
Reset MySQL 8.0 root Password in Windows
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment