Home Domain Name Google Cloud SQL Connection Timeout

Google Cloud SQL Connection Timeout

0
Google Cloud SQL Connection Timeout

Wondering how to fix Google Cloud SQL connection timeout error? We can help you!

At times Google cloud SQL users report to us that while trying to connect to the database they get this error.

Here at Bobcares, we often handle requests from our customers to fix similar errors as a part of our Server Management Services.

Today we will see how our Support Engineers do this for our customers.

How to fix Google Cloud SQL connection timeout

Before going into the steps for fixing this error we will see what causes this error.

A typical error looks like the following one:

ERROR: PDOException: SQLSTATE[HY000] [2002] Connection timed out in /app/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:43

Causes for the issue:

Following are the reasons why a connection attempt may possibly fail:

1. Network issues

2. Database might be temporarily unable to respond.

Steps to fix this error

Following are the steps to fix this timeout error:

We have to add the external IP address of the instance in cloud SQL AUTHORISATION.

For doing this we can use the steps given below:

1. Firstly, we have to enter into the cloud SQL instance by clicking on the instance name from the console.

2. Then click on the Authorisation tab.

3. After that we have to add the external IP address of virtual machine instance by clicking on +Add network.

4. And enter the IP address in the Network field.

5. Finally we can click Done and save the Cloud SQL instance.

[Need assistance? We can help you]

Conclusion

To conclude, we saw the steps that our Support Techs follow to fix SQL connection timeout on Google cloud platform for our customers using GCP.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

var google_conversion_label = “owonCMyG5nEQ0aD71QM”;

LEAVE A REPLY

Please enter your comment!
Please enter your name here