In the Data Sources and Drivers dialog, click the Add icon ( ) and select your database vendor (in our case, PostgreSQL).Īt the bottom of the data source settings area, click the Download missing driver files link. In the Database Explorer ( View | Tool Windows | Database Explorer), click the Data Source Properties icon. ![]() You can open data source properties by using one of the following options: If the 3306 port is already in use, change it to another port (for example, 5435).Įnsure that the Cloud SQL Proxy client is running (see Step 1). You can find this information on the Overview page of your instance. Replace the connection_name with the connection name of your instance. cloud_sql_proxy -instances=connection_name=tcp:3306 Follow the installation wizard in the command prompt. Run the gcloud init command to initialize the SDK. This procedure provides a summary of steps from the guide.ĭownload and extract the Google Cloud SDK archive. Installing Google Cloud SDKįor more information about the installation process, see the Installing Google Cloud SDK guide at. For more information about gcloud, see the gcloud reference at. Google Cloud SDK includes the gcloud utility that manages authentication and interactions with the Google Cloud Platform API. To complete the connection's configuration, you need Google Cloud SDK. If you plan to add your network to the list of authorized networks, you can skip this part. This configuration procedure is common for the Cloud SQL Proxy client and the Cloud SQL Connector for Java. To connect to your instance, you need to add your IP address or a range of IP addresses to authorized networks. The connection is not secured (no encryption). ![]() After this procedure, you can connect to the PostgreSQL instance from your network by using the IP address of your instance. To connect to your instance, you need Google Cloud SDK and the JAR library file of the Cloud SQL Connector for Java.Īdding your network to authorized networks: adding your network to the list of authorized sources in the Google Cloud Console. ![]() These libraries are available on the Release page of the cloud-sql-jdbc-socket-factory repository at. To connect to your instance, you need Google Cloud SDK and the Cloud SQL Proxy client.Ĭloud SQL Connector for Java: libraries for JDBC drivers by using which you can connect securely to Cloud SQL databases. You can read more about the Cloud SQL Proxy in this article at. When the Cloud SQL Proxy client runs, you do not need to add your IP to authorized networks or configure SSL. If you have not created the instance yet, see Creating instances at .įrom DataGrip, you can connect to your instances by using the following options.Ĭloud SQL Proxy client: a command-line tool that establishes the proxy connection and provides secure access to your instances. But you can use the same instructions to connect to MySQL and Microsoft SQL Server instances of Google Cloud SQL. Within the framework of this topic, we are going to use a PostgreSQL instance on the Google Cloud Platform.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |