App overview screenshotSQL and Database Guides
PostgresMySQL
Try our free SQL Client
Tools
Connecting to MySQL
Connecting to drivers
Installing MySQL
Setting up MySQL
MySQL   >   
Setting up MySQL   >   
MySQL on Google Cloud

Connect to MySQL on Google Cloud

Log into the Google Cloud Console Main Dashboard

Log into the Google Cloud console and click through to the SQL dashboard in Google Cloud SQL.

gcp_go-to-sql-dashboard.png

Get the IP Address of the Instance

Note down the Public IP Address of the database instance. This will typically be referred to as the hostname in database clients.

gcp_get-mysql-address.png

Edit the Instance to See More Details

edit-gcp-db-instance.png

Check the Connection Settings

To ensure that you will be able to access the instance, check the Connection settings by expanding the Connections dropdown.

gcp_check-connection-settings.png

If you have a public IP address enabled, you must also have the proper level of network access. You can add your IP address to the Authorized Networks list by searching for it in most search engines.

what-is-my-ip

Get the User and Password

On the left, click on the Users tab to see what users are allowed to connect to the instance. In this example, the root user is the only user but it is advised to have a different user with more restricted permissions be your main access point. When the instance was created, this user would have been assigned a password. If you do not have the password, you can click on the user to edit it and change the password.

gcp_get-user-change-password.png

Connect to your MySQL database on Google Cloud

Now you have the IP address, username, and password you are ready to connect! You can use a SQL client like Arctype to enter this information in and see your tables and run queries.

Want to ask for help on databases or SQL? Join our Discord community.