Troubleshooting MySQL error #1045 using WAMP
This tutorial will clarify with necessary illustrations and figures how to avoid #1045 error using WAMP server. For other servers like LAMP, this tutorial may not be helpful. When you install WAMP and try to connect MySQL server using phpMyAdmin for the first time then MySQL refuses the connection displaying #1045 error. It is look like the figure below
Procedure to Troubleshoot
Here are few steps that must be followed carefully
- First of all make sure that the WAMP server is running if it is not running, start the server.
- Enter the URL http://localhost/phpmyadmin/setup in address bar of your browser.
- Create a folder named config inside C:wampappsphpmyadmin, the folder inside apps may have different name like phpmyadmin3.2.0.1
- Change the authentication type to ‘cookie’ and leave the username and password field empty but if you change the authentication type to ‘config’ enter the password for username root.
- Click save
- Now navigate to the config folder. Inside the folder there will be a file named config.inc.php. Copy the file and paste it out of the folder (if the file with same name is already there then override it) and finally delete the folder.
- Now you are done. Try to connect the mysql server again and this time you won’t get any error.
Thank you so much, very helpful articles
Thank you very very much. I tried a million ways but only yours worked!!
Thank you so much,tôi yêu bạn
Hello, I did all these steps, now, I can type user and password, but it shows the error #1045. maybe I have other error because the wampserver's icon on windows is orange. should it be green? I hope someone can help me
Hello sir,
i am working on mini project that iscollege management system . so i need ur help to implement that project in correct manner.
so please give me reply as early as possible on my mail [email protected]
How to troubleshoot with MAMP server please?
I got same error……
same issue 🙁