Monday, October 17, 2016

Re: [google-cloud-sql-discuss] Re: DB_HOST

hi 

thanks for your reply.

i have already authorised my ip hence i dont get the 'error contacting to database'
it's not a appengine project but a compute engine

please note my answers below;

- first gen cloud sql
- hosted on compute engine
- cloud sql ip = 173.194.81.232
- mysql 5.6

On 18 October 2016 at 07:21, 'Alex (Cloud Platform Support)' via Google Cloud SQL discuss <google-cloud-sql-discuss@googlegroups.com> wrote:

Hi Salim,


Depending on your environment, you have several options available to you in the following link for connecting to your Cloud SQL instance. As in the subsection "Configure access to your Cloud SQL instance", you may have to authorise the IP address of the client machine where your MySQL client is installed.


To answer your question about setting up the DB_HOST variable, again depending on your environment(Wordpress site hosted on Google App Engine) you may be able to fix your redirect issue by setting it to ':/cloudsql/[YOUR_PROJECT_ID]:[Instance Region]:[Instance name]' as in the following "Setting up the WordPress project" link.


Alternatively, it is possible that the redirect can be caused by a plugin within the Wordpress environment. In that case, the best remedial action is to test each plugin individually after disabling them all.


In case none of the previous solutions works, please provide the following information about your set up:

- The generation of the Cloud SQL instance that you are using

- Where you are hosting your Wordpress Site

- The exact value of the DB_HOST that you have set

- Which version of MySQL are you using


Let me know if you're able to resolve it and share your setup infos if need more help with connecting to the Cloud SQL instance.


On Monday, October 17, 2016 at 9:45:43 AM UTC-4, Salim Karim wrote:
hi,

i am trying to run Wordpress with Cloud SQL.

I need to know what the DB_HOST should say?

currently it is set to the IP of Cloud SQL but I get 'redirected you too many times.'




Did you receive      service?
Feel free to leave a Google Review
Not Happy? Please contact our CEO


Connect with us: 

    

Please consider the environment before printing this email.

 

This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential,  may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of National Training and Solutions Provider Pty Ltd ABN 34 123 831 023, or any of its related entities. NTSP does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/ad50845f-ebb4-4033-8656-01223eb16ec5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Salim Karim
General Manager

ext. 14


Did you receive      service?
Feel free to leave a Google Review
Not Happy? Please contact our CEO


Connect with us: 

    

Please consider the environment before printing this email.

 

This e-mail and any attachments to it (the "Communication") is, unless otherwise stated, confidential,  may contain copyright material and is for the use only of the intended recipient. If you receive the Communication in error, please notify the sender immediately by return e-mail, delete the Communication and the return e-mail, and do not read, copy, retransmit or otherwise deal with it. Any views expressed in the Communication are those of the individual sender only, unless expressly stated to be those of National Training and Solutions Provider Pty Ltd ABN 34 123 831 023, or any of its related entities. NTSP does not accept liability in connection with the integrity of or errors in the Communication, computer virus, data corruption, interference or delay arising from or in respect of the Communication.

--
You received this message because you are subscribed to the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-cloud-sql-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/CAK9u%2BjmkLw6zkMyWctWHGbVCxtPDbYJTBvcdBpDrv56CizqMNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment