Connection to the local database appears: 1045-access denied for user ' root ' @localhost ' (using Password:yes) Solution:

Source: Internet
Author: User

Direct yesterday or good today is not, the password is correct, is the local connection is not on, Linux MySQL can connect,

Find all kinds of solutions on the Internet, what permissions, what add a sentence, and this

If this is not going to go to the direct reload it, in fact, not a little bit better, I installed 2 times, may not be uninstalled clean, = = = Remember to back up the database file = =

First Control Panel uninstall MySQL service, then go to C:\ProgramData below there is a MySQL this is hidden file, click to check the hidden file can be seen, and then delete,

Then cmd: Enter regedit and go to the Registry Editor directory to find

Hkey_local_machine\system\controlset001\services\eventlog\application\mysql

Hkey_local_machine\system\controlset002\services\eventlog\application\mysql

Hkey_local_machine\system\currentcontrolset\services\eventlog\application\mysql

Delete this MySQL file, then restart your computer, unzip your MySQL installation package again,

Install again, because you've already installed it once, so that MySQL has to change a name,

This is my name after the successful installation.

Another is the last step of the installation did not respond to this problem is the registry and the C-drive path is not removed clean, and the name did not change, will appear, is not responding.

This is a personal experience, if you want to re-install directly, I hope to help everyone.

Connection to the local database appears: 1045-access denied for user ' root ' @localhost ' (using Password:yes) Solution:

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.