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.
12,677 questions
{count} votes

2 additional answers

Sort by: Most helpful
  1. Tom Phillips 17,716 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,961 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