简体   繁体   中英

Connect to Google Cloud MySQL Database

I'm trying to connect to my MySQL database using a soft called Beekeeper-studio . I created a SQL instance, inside I created a database (let's called it myDatabase) and a username and password (test and testPassword). And I tooke the public IP address on the overview page of this instace.

So I'm trying to make a connection to the db with the URL like that: mysql://test:testPassword@XX.XX.XX.XXX:3006/myDatabase

So when I'm trying to connect, i have a timeout error: connect ETIMEDOUT XX.XX.XX.XXX:3006

I'm trying to connect to the db before using it on my nodejs API. Any idea?

You'll need to either:

  1. Add your machine's IP to an authorized network , or
  2. Run the Cloud SQL Auth Proxy on your machine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM