D.B 21 Reputation points

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.
9,178 questions
{count} votes

2 additional answers

Sort by: Most helpful
  1. Tom Phillips 17,621 Reputation points

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

  2. AmeliaGu-MSFT 13,891 Reputation points Microsoft Vendor

    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,

    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.