MySQL 1045 Error

Source: Internet
Author: User

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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.