Last answered:

13 Nov 2024

Posted on:

12 Nov 2024

0

Resolved: SQL INSTALATION

I try so many time but the password still not correct, what shoud I do?
Thank You.
2 answers ( 1 marked as helpful)
Instructor
Posted on:

13 Nov 2024

0
Hi Annisa!
Thanks for reaching out.

If you forgot the root password in MySQL, here’s a quick solution:

Reset the Root Password:
   - Open the Command Prompt as an administrator.
   - Run MySQL in safe mode: 
mysqld --skip-grant-tables
   - Open another Command Prompt and log in without a password:
mysql -u root
   - Once logged in, reset the password:
UPDATE mysql.user SET authentication_string = PASSWORD('new_password') WHERE User = 'root';
FLUSH PRIVILEGES;
   - Restart MySQL and log in with the new password.

This should resolve the issue.

Hope this helps.
Best,
Tsvetelin
Posted on:

13 Nov 2024

0
Alright, thank you so much for the solution.

Submit an answer