Stay organized with collections Save and categorize content based on your preferences.
MySQL | PostgreSQL | SQL ServerThis page describes several common database administration and reporting tools that you can use to connect to your Cloud SQL instances.
OverviewDatabase administration and reporting tools provide varying degrees of support for managing your database. Select a tool based on the type of administration and reporting that you need to do. For example, if you need to connect to one database and issue a few SQL commands, consider using the MySQL client. See Connecting MySQL Client Using IP Addresses. If you need to design or manage many databases simultaneously, then use one of the visual-based tools discussed here.
We discuss a limited number of tools in this page. If your tool is not discussed, it's likely that you can successfully connect by following the steps for a similar tool.
Connect with MySQL WorkbenchThis section shows how to connect to your Cloud SQL instance database with MySQL Workbench.
Note: Add your MySQL Workbench machine's IP address as an authorized network for your Cloud SQL instance.SHOW STATUS like 'ssl_cipher';Figure 3: Testing if the MySQL Workbench connection uses SSL.
This section shows how to connect to your Cloud SQL instance database with Toad for MySQL.
In Figure 5, a Create New Connection dialog box is shown with information for connecting with SSL. All versions of Toad might not support connecting with SSL.
Figure 5: The Create New Connection dialog box in Toad for WindowsOnce connected, you can test if you're using SSL by executing the following SQL statement and verifying that the ssl_cipher
value is not empty:
SHOW STATUS like 'ssl_cipher';Connect with SQuirrel SQL
This section shows how to connect to your Cloud SQL instance database with SQuirrel SQL.
Note: The connection URL for using SSL is of the form: jdbc:mysql://<instance-ip>:3306/<database>?verifyServerCertificate=true&useSSL=true&requireSSL=true
. However, to use SSL, you must specify truststore files created from the CA certificate, the client certificate, and the client key you obtained when you created an SSL certificate. For more information, see Configuring a SQuirrel SQL connection to use SSL.
This section assumes that you've created an SSL certificate (see Configuring SSL for an instance) and you have three files:
Use these files as described in Connecting Securely Using SSL in the MySQL Reference Manual to create keystore and truststore files. You need to specify the keystore and truststore files when you start SQuirrel SQL. One way to do this is to edit the script that launches the SQuirrel SQL application as follows:
$JAVACMD -Djavax.net.ssl.keyStore=<path-to-keystore> \ -Djavax.net.ssl.keyStorePassword=<keystore-password> \ -Djavax.net.ssl.trustStore=<path-to-truststore> \ -Djavax.net.ssl.trustStorePassword=<truststore-password> \ [existing launch parameters]
After you've started SQuirrel SQL with the valid keystore and truststore information, you can connect with:
jdbc:mysql://<instance-ip>:3306/<database>?verifyServerCertificate=true&useSSL=true&requireSSL=true
Once connected, you can test if you're using SSL by executing the following SQL statement and verifying that the ssl_cipher
value is not empty:
SHOW STATUS like 'ssl_cipher';
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-14 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4