ERROR 1045 (28000): Access denied for user ' ODBC ' @ ' localhost ' (using Password:yes)

Source: Internet
Author: User
Tags odbc

ERROR 1045 (28000): Access denied for user ' ODBC ' @ ' localhost ' (using Password:no)

ERROR 1045 (28000): Access denied for user ' ODBC ' @ ' localhost ' (using Password:yes)

Workaround for the above two errors under Windows

Tools/Materials
    • Windows 8
    • Mysql
Method/Step
  1. Locate the profile My.ini, and then open it, and you can choose to open it with Notepad

  2. After opening, search for mysqld keyword

    When found, add skip-grant-tables below mysqld to save the exit.

    PS: If prompted not to save, you can cut the file to the desktop, change the save and then copy to the MySQL directory

  3. Restart MySQL after saving

  4. Then run cmd

    Input Mysql-u root-p can be used without password login, appear password: When the direct enter can enter.

  5. 1. Go to MySQL database:

    mysql> Use mysql;database changed

    2. Set a new password for the root user, and enter the blue section yourself:mysql> Update user set Password=password ("123456") where user= "root"; Query OK, 1 rows affected (0.04 sec) rows Matched:1 changed:1 warnings:0

    3. Refresh the database mysql> flush privileges; Query OK, 0 rows affected (0.01 sec)

    4. Exit Mysql:mysql> Quitbye

    ps:123456 for the new password, users can change their own password according to their own needs

  6. 6

    After the change, and then modify the My.ini this file, we just joined the "Skip-grant-tables" this line to delete, save to quit and restart the MySQL service.

ERROR 1045 (28000): Access denied for user ' ODBC ' @ ' localhost ' (using Password:yes)

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.