MYSQL.CONNECTOR ISSUE

D.B 21 Reputation points
2021-06-29T15:56:42.767+00:00

I am trying to connect mysql(8.0) and python(3.8) using mysql.connector but getting the error:

mysql.connector.errors.ProgrammingError: 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) Windows 10

same code working for pymysql.connect
note that the password entered is correct.

SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,992 questions
{count} votes

Accepted answer
  1. AmeliaGu-MSFT 13,986 Reputation points Microsoft Vendor
    2021-07-01T08:14:03.887+00:00

    Hi DB-7652,
    Please refer to MySQL ERROR 1045 (28000) and Fixing MySQL 1045 Error: Access Denied which might help.
    You can also open a thread in this forum.

    Best Regards,
    Amelia

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Tom Phillips 17,741 Reputation points
    2021-06-29T16:57:08.343+00:00

    This is a MICROSOFT SQL Server forum. You need to post your question in a "mysql" forum.

    https://forums.mysql.com/

    0 comments No comments

  2. AmeliaGu-MSFT 13,986 Reputation points Microsoft Vendor
    2021-06-30T02:24:21.12+00:00

    Hi DB-7652,

    Welcome to Microsoft Q&A.
    For MySQL issue, suggest you open a thread in the corresponding forum mentioned by TomPhilips, so that people there will help you more effectively.
    And here is an article which might help.

    Best Regards,
    Amelia


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.