Sample Header Ad - 728x90

MySQL denied me access after changing my password

0 votes
1 answer
255 views
I am new to MySQL. Today is my first day using it through XAMPP. I have managed to change my password using the code mysqladmin -u root password Suddenly I was denied access from XAMPP and from the MySQL Admin portal. I tried to reset the password immediately in the same window using the same command but I was given the error mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' I saw a number of related questions here on stackoverflow but they were all about phpMyAdmin password issues. I would like to rest it to the default password and gain access to MySQL & XAMPP again. I have been going around in circles for an hour. Any help would be appreciated.
Asked by Learner123
May 13, 2023, 10:41 PM
Last activity: May 27, 2025, 03:06 PM