I forgot the root password for MySQL server on my MYCloud EX2 Ultra (4.14.22-armada-18.09.3)
When logging in here:
- http:///phpMyAdmin/index.php
I get:
- mysqli::real_connect(): (HY000/1045): Access denied for user ‘test’@’localhost’ (using
password: YES)
And within etc:
I can find my.cnf:
[mysqld]
bind-address=127.0.0.1
user = test
password = test1234
I’ve tried adding the user and password here but no success. Anyone have any idea on how to get this password reset?
2
Answers
You can follow these steps:
Stop the MySQL Server:
Start MySQL in Safe Mode:
Access MySQL without Password:
Use the MySQL Database:
Update the Password:
Replace NEW_PASSWORD with your desired password.
Flush Privileges:
Exit MySQL:
Stop MySQL Safe Mode:
Start MySQL Normally:
Now you should be able to login with the new password. Ensure to replace NEW_PASSWORD with the actual password you want to set.
MYSQL ROOT PASSWORD RESET IN CASE OF FORGOT
Run the following Commands Step by Step (Tested on Windows 10 With MYSQL 8 VERSION)
Run Command:-
Now Open Another Power Shell As Administrator and Run the Following Commands:
(Remember Do Not Close the Running PowerShell/CMD Window..keep it open until you follow these steps:)-
mysql>SHOW DATABASES;