Get database connection informationĬonnecting to an Azure Database for PostgreSQL - Flexible Server requires the fully qualified server name and login credentials. ![]() To install psycopg2, open a terminal or command prompt and run the command pip install psycopg2. Install the binary version of the module, including all the dependencies. The psycopg2 module enables connecting to and querying a PostgreSQL database, and is available as a Linux, macOS, or Windows wheel package. Install the Python libraries for PostgreSQL Refer to Create and manage Azure Database for PostgreSQL - Flexible Server firewall rules using the Azure CLI. If you created your flexible server with Public access (allowed IP addresses), you can add your local IP address to the list of firewall rules on your server.Refer to Create and manage Azure Database for PostgreSQL - Flexible Server virtual network using Azure CLI. You can create a virtual machine and add it to the VNet created with your flexible server. If you created your flexible server with Private access (VNet Integration), you will need to connect to your server from a resource within the same VNet as your server.To create flexible server, refer to Create an Azure Database for PostgreSQL - Flexible Server using Azure portal. An Azure Database for PostgreSQL - Flexible Server. ![]() An Azure account with an active subscription.This article assumes that you're familiar with developing using Python, but you're new to working with Azure Database for PostgreSQL - Flexible Server. 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 PostgreSQL - Flexible Server by using Python. Azure Database for PostgreSQL - Flexible Server
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |