When MySQL 5.5.20 is installed at the company today, the following error 1045 is always reported at the last point:
#1045-Access denied for user 'root' @ 'localhost' (using password: No)
#1045-Access denied for user 'root' @ 'localhost' (using password: Yes)
In dos, MySQL cannot be accessed. I tried it online and found that the password was incorrect. However, I tried almost all the methods on the Internet and did not solve the problem.
First, you can confirm that the password is incorrect, but the configuration during installation is correct.ProgramI can't correct it. I can't go in again in DOS, so I'm very depressed...
See an articleArticleIt is said that the previously installed version has an impact, resulting in incorrect connections. You can modify the server connection address, but I still cannot.
Inspired by it, I have installed an old version before, and may not be removed, resulting in conflicts. Open the MySQL installation directory and find my. ini. There is a line in it:
# Path to the database rootdatadir = "C:/Documents and Settings/all users/Application Data/MySQL Server 5.5/data /"
Find the MySQL folder at the address of the following line. There are two in it. Delete the folder that is not the desired version and run the configuration program again. OK!
If not, delete all the items and reinstall MySQL.