Azure Mysql connection issue using python

Dankal 21 Reputation points
2022-02-01T20:22:39.91+00:00

I am facing connection issue using python not sure if i am installing all the required pip.

Azure SQL Database
Azure Database for MySQL
Azure Database for MySQL
An Azure managed MySQL database service for app development and deployment.
714 questions
0 comments No comments
{count} votes

Accepted answer
  1. GeethaThatipatri-MSFT 27,642 Reputation points Microsoft Employee
    2022-02-03T14:58:02.537+00:00

    Thanks for your response and good to hear that you were able to install the right pip, please find the below code from the code sample provided which might help you in fixing the issue, please provide the error screenshot so i can better assist you to fix your issue.
    171033-image.png

    Regards
    Geetha

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 27,642 Reputation points Microsoft Employee
    2022-02-01T23:36:46.637+00:00

    Hi @Dankal Welcome to MicrosoftQ&A, thank you for posting your question
    I understand that you are trying to connect to Azure MySql using python and having trouble installing the right pip, correct me if my understanding is wrong.

    Can you please share your error message or a screenshot that helps you to understand more and can better assist you, however for MySQL please install pip install mysql-connector-python see as below. please refer to the document for reference

    170363-image.png

    Regards
    Geetha