![]() ![]() In the portal search bar, search for and select the Azure Database for MySQL server you created, such as mydemoserver.įrom the server's Overview page, make a note of the Server name and Server admin login name. You need the server name, database name, and login credentials. Get the connection information you need to connect to Azure Database for MySQL from the Azure portal. Use pip to install the MySQL connector for Python and its dependencies: pip install mysql-connector-python If pip isn't installed, you can download and install it with get-pip.py. Update pip to the latest version by running pip install -U pip. The pip package installer is included in the latest versions of Python. ![]() Open a command prompt or bash shell, and check your Python version by running python -V with the uppercase V switch. Make sure to add Python to your PATH, because the MySQL connector requires that. This quickstart is using MySQL Connector/Python Developer Guide.ĭownload and install Python 3.7 or above for your OS. Install Python and the MySQL connector for Python on your computer by using the following steps: Create an account for free.Ĭreate an Azure Database for MySQL single server using Azure portal or Azure CLI if you do not have one.īased on whether you are using public or private access, complete ONE of the actions below to enable connectivity. PrerequisitesĪn Azure account with an active subscription. You then use SQL statements to query, insert, update, and delete data in the database from Mac, Ubuntu Linux, and Windows platforms. In this quickstart, you connect to an Azure Database for MySQL by using Python. For more information about migrating to Azure Database for MySQL - Flexible Server, see What's happening to Azure Database for MySQL Single Server? We strongly recommend for you to upgrade to Azure Database for MySQL - Flexible Server. Azure Database for MySQL - Single Server is on the retirement path.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |