
After installing a local server and trying to access phpMyAdmin, you could possibly encounter the error: #1045 Access Denied for user 'root'@'localhost' (using password: YES). If root@localhost wasn't granted the necessary rights to access the database or you provided the wrong password, you will then encounter this error. Following this tutorial will help guide you on bypassing this error, for any local host server using phpMyAdmin. If you get an Error #1045 in phpMyAdmin it will look like the image below: ![]() Step 1: Open your MySQL console.![]()
Step 2: Enter the Provided Command Lines![]() If you have a password, you can ignore this part.
SET Password=PASSWORD("EnterYourPasswordHere")
Step 3: Open and edit your config.inc.php file located in your local server files![]()
Step 4: Access phpMyAdmin![]()
|

With Admincredible you can update and manage all your Joomla sites. If you have 5 or 500 sites, Admincredible will make your life easier! Visit Admincredible.com.
All of our tutorials are published under the Creative Commons Attribution-NonCommercial license. This means:
Open Source Training is not affiliated with or endorsed by the Joomla, WordPress or Drupal projects.
All product names and trademarks are the property of their respective owners.
Copyright 2013 Open Source Training, LLC. All rights reserved.
Comments
go to the wamp [w] icon on right side of you desktop near the time.left click go to [mysql] left click [services] select [restart] and smile :)
if not restart your pc open browser and refresh the page :)
#1045 - Access denied for user 'root'@'localho st' (using password: NO)
#1045 - Access denied for user 'root'@'localho st' (using password: NO)
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
I never logged into phpMyAdmin or set up a password so it should work fine... I try to use the MySql Console and when I try the suggested password it just closes, when I try no password, it just closes. I am the admin. Do you think it has to do with the port change? any suggestions?
Thanks,
TANKS!!!!!!!!!!!!!!!!!!!!!!!!!!
ME SALVASTE LA VIDA GRACIAS BUSQUE DEMASIADO CÓDIGO HASTA QUE APARECIÓ TU LUZ Y ME ILUMINÓ MIL GRACIAS!!!!!!!!!!!!
You saved me THANK YOU!!!!!!!!!!!!
Thanks again.
I could not set password in command prompt. when i run mysql.exe file there also i got same error when i run on browser. that is access denied for localhost user.
Please help me how to solve this error
Thanking you in advance
mysql> FLUSH PRIVILEGES:
->
THANKS in advance
->
I fixed the problem by fixing my typing error (";" instead of ":"). That ":" created a syntax error and mysql returned "->" expecting a new line. Anyway, my problem is fixed and I am inside phpmyadmin now. Thanks!
please any one help me?
thanks lot.