Mysql – #1045 – Access denied for user ‘root’@’localhost’ (using password: YES) MAMP MySQL access denied

mampMySQLmysql-error-1045phpmyadminWordpress

I'm trying to copy a live WordPress site to my local server. I went to import the database from the live site through MAMP, and I received an error message when trying to connect to phpMyAdmin:

#1045 – Access denied for user 'root'@'localhost' (using password: YES)

I have a couple local WP installations running already, and I'm able to access them through the localhost:8888/sitename path just fine.

I haven't changed any passwords or messed around with any configurations in phpMyAdmin. In fact, it was all working fine just yesterday. I had to re-boot my computer because it froze on me this morning, and that's when the issues began.

I even went into the config.inc.php file in Applications/MAMP/phpMyAdmin, and the usernames and passwords match what I had originally. (It definitely wasn't 'YES')

I'm stumped at this point. Could anyone help?

Best Answer

Can you try resetting the MySQL server password using this guide. Then put the new password in the PHPMyAdmin config?

using password: YES Means that you attempted to login using a password, not that the password used is 'YES' Its referring to the different options for logins like certificates etc.