Monday, July 31, 2017

[google-cloud-sql-discuss] Cannot seem to write to Second Generation Cloud SQL?

I have a small test audio site where users can register, upload and play tracks 
  1. I have set up a LAMP stack using the Cloud launcher creating VM001
  2. set up phpMyAdmin locally
  3. deployed script which writes input data to local database
  4. have now created a 2nd Generation Cloud SQL db_cloud
  5. Have allowed the VM001 IP address under Access Control>>Authorisaion
  6. have created a user MEMEME with password
  7. added IP address to phpMyAdmin which i can log into with the user credentials (not Root)
  8. i have imported the database from local >> db_cloud
Ie  - i have a local setup which is tried and tested and works fine
AND 
now i am attempting to use Google Cloud SQL service instead of local database.

everything seems to be in working order
EXCEPT

  1. new inputs eg new user / new uploads /  etc do not seem to be written to the external database
  2. user cannot play existing tracks
Have i missed anything in terms of permissions for connecting between my Google Compute Engine VM instance and Google SQL instance?

THanks

--
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/71c04ee2-9efa-4a70-b589-8ff6c13e8bd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Re: SSL and MySQL

thanks Faizan

much appreciated

On Wednesday, 26 July 2017 02:05:14 UTC+1, jinguruxxx wrote:
I'm hoping this doesn't sound stupid but i just want to make sure i cover all bases

I have a VM instance created in Compute engine and have deployed a LAMP stack

Further more i have phpMyadmin installed to allow me to manage my database. I have assigned the necessary credentials also to manage a Google SQL database (i have option for first generation or second generation set up)

Currently no SSL has been implemented ie http

Are there any factors i should consider related to the Google SQL database before implementing SSL?

Thanks

--
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/c6652b6a-c522-48e8-a76c-4fb1249cc6c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thursday, July 27, 2017

[google-cloud-sql-discuss] Re: SQL server hung up on updating.

Hello Seth, 

What were you undertaking prior to the instance becoming unresponsive? Did you run any specific gcloud commands? Any other related details might come handy. 

Automatic instance update is a maintenance default. Scheduling is automatically managed for instances, and appropriate reactions are expected whenever system events risk causing disruption. To modify any of the default parameters, you can use the command below. 

You may try to restart your service by running the following command: 

gcloud sql instances patch [INSTANCE_NAME] --activation-policy [ACTIVATION_POLICY] 

and choose activation policy value: "ALWAYS" or "ON_DEMAND".

Any other information you deem relevant might prove of great help. 

--
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/4d87d1a5-952f-41d9-acae-032b821b6283%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wednesday, July 26, 2017

[google-cloud-sql-discuss] Re: ERROR: must be owner of extension plpgsql

Thanks Carlos, for anyone who comes across this problem, we solved it with this:

pg_dump -Fc --no-acl --no-owner -h <connection> -d <database> -U <user>

On Tuesday, July 25, 2017 at 7:40:59 AM UTC-7, Carlos (Cloud Platform Support) wrote:
Hi Mike,

It does seems that the dump file you are trying to import includes some plpgsql statements requiring Superuser role. This role is certainly not available on hosted PostgreSQL.

It is unlikely that you need to import plpgsql related statements since by default, the database has the plpgsql extension already installed. So there is no need to install it again via the import.

The suggested workaround is to inspect you inspect your dump file and remove all sql statement related to "plpgsql".

--
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/f41316ea-c06a-4ccd-91f5-9742229c88eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] SQL server hung up on updating.

My  SQL server just went into "updating" and will not come out of that status. 
Attached is a picture of  the error i am getting. 
How can i get it out of this status ?
How can i prevent this from happening again?

My project is api-project-1076294409531

Seth Russell
I'd give you my website, but it is down :(


--
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/9d88b329-0711-4060-810f-c4907387239a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Re: SSL and MySQL

Hello Jinguruxxx,

You can setup SSL to connect to CloudSQL database from your GCE VM, in case you are not using Cloud SQL proxy. The SSL certificate is automatically created when you create your instance. You don't have to manage the certificate as long as the server certificate is valid. However, the certificate has expiry date and after that date its no longer valid.

You can refer to this link which has detailed information and steps for configuring instance to use SSL, manage your server and client certificates.

Faizan

[1] https://cloud.google.com/sql/docs/mysql/configure-ssl-instance

On Tuesday, July 25, 2017 at 9:05:14 PM UTC-4, jinguruxxx wrote:
I'm hoping this doesn't sound stupid but i just want to make sure i cover all bases

I have a VM instance created in Compute engine and have deployed a LAMP stack

Further more i have phpMyadmin installed to allow me to manage my database. I have assigned the necessary credentials also to manage a Google SQL database (i have option for first generation or second generation set up)

Currently no SSL has been implemented ie http

Are there any factors i should consider related to the Google SQL database before implementing SSL?

Thanks

--
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/9fd0dc2f-d33c-452a-8d1f-ad9488859740%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Re: Can not add "Authorized App Engine Standard applications"

Hello Huy, 

We are unable to find the indicated project ID. It is better to send it in confidential manner by using the drop-down arrow at the top right of the edit window, and create an email message. 

Are all the apps you want to add on the authorized list registered in the same region, e.g. in us-east1, etc.? You can only add apps from the same region to the authorized app engine standard applications list.  

After running the gcloud components update command, what are the results of gcloud info? 
 

--
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/75c86d0f-944b-464d-9b10-3fd468d4013f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Can not add "Authorized App Engine Standard applications"

Hi guy,

My project id "id-vatgia-com", I has issue (Image attached)

I want add more "Authorized App Engine Standard applications" but received error "Could not complete the operation"

Please help me, tks

--
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/5d1840d3-6752-4a4f-870b-fdf4636aa49b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tuesday, July 25, 2017

[google-cloud-sql-discuss] SSL and MySQL

I'm hoping this doesn't sound stupid but i just want to make sure i cover all bases

I have a VM instance created in Compute engine and have deployed a LAMP stack

Further more i have phpMyadmin installed to allow me to manage my database. I have assigned the necessary credentials also to manage a Google SQL database (i have option for first generation or second generation set up)

Currently no SSL has been implemented ie http

Are there any factors i should consider related to the Google SQL database before implementing SSL?

Thanks

--
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/8c3d5760-7a31-4a4c-acc2-8d9d6b7a9552%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Re: Intermittent connection issues for past 24 hours

I am glad to hear Cloud SQL dropped connections are no longer an issue for you. You don't need to send additional information. I will keep this thread open for a few more days in case your issue reappears.

--
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/ef73a0c9-ccb6-4ac0-a684-534fc5935dcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

Hi Thank you for the response.

It looks as if i erred!

Will remedy that

On 25 July 2017 at 17:09, 'David Newgas' via Google Cloud SQL discuss <google-cloud-sql-discuss@googlegroups.com> wrote:
Hi,

The ":/cloudsql/project:region:id" instructions are for Google App Engine. If you are on Google Compute Engine, you have two options:
  1. Connect to the public IP address of your Cloud SQL instance. This requires you whitelist your GCE instance on the ACL for the Cloud SQL instance.
  2. Use the Cloud SQL proxy. This is a extra daemon you run on your GCE instance that allows you to connect via TCP on localhost or a socket.
Complete instructions for both of these options are available at https://cloud.google.com/sql/docs/mysql/connect-compute-engine.

On Tue, Jul 25, 2017 at 7:11 AM, jinguruxxx <jinguruxxx@gmail.com> wrote:
Hi - i am hoping this forum is still open for posts
I am experiencing a similar problem although not relating to Wordpress

I created a micro VM on Compute engine and created a LAMP stack
I uploaded my script which required an MySQL database created locally. All works fine

I then created 2 instance on Google SQL( First Generation and Second Generation with a database in each.
Following the documentation i set up credentials to allow access as well as making necessary adjustments to phpMyAdmin script so that i can access these databases from 
<myIPaddress>/phpMyAdmin

All good

BUT

Now i am stuck with actually connecting the web page to the remote Google SQL instance+database
I believe I am posting the HOST credentials incorrectly

Credentials are in a config.php file in path in the root folder var/www/html/includes/config.php

normally i have [excerpt]

$CONF = $TMPL = array();

// The MySQL credentials
$CONF['host'] = '"localhost"';
$CONF['user'] = 'username';
$CONF['pass'] = 'pwd';
$CONF['name'] = 'databasename';


i am using 

$CONF['host'] = ':/cloudsql/jinguru-live:europe-west1:jdb-gcpsql-002a';

When i try to load up the webpage i get

Failed to connect to MySQL: (2005) Unknown MySQL server host '":/cloudsql/jinguru-live:europe-west1:jdb-gcpsql-002a"' (2)Error:

Please let me know what i am doing wrong!!
I can provide further details re the Google Compute Engine and Google SQL credentials

THanks







On Monday, 17 October 2016 21:42:53 UTC+1, Alex (Cloud Platform Support) 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/a65b4b00-cee3-4b34-ac65-9e9ab9c60d1f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Google Cloud SQL discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-cloud-sql-discuss/pgTB5n-kfbo/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAJZK_bbC37TaPxabkN5-84_ewOERcBzzsL%3DAZQuQUKS-RK235Q%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
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/CADLGrHZpY%3D4bySSM1PtF%3De9kiemNr6oLp4v9NG-6NW8%3DCN7h6w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Re: [google-cloud-sql-discuss] Google Compute Engine VM connection to Google SQL Instance

Hi,

As I mentioned in my other email, those instructions are for Google App Engine. On Google Compute Engine, you have two options:
  1. Connect to the public IP address of your Cloud SQL instance. This requires you whitelist your GCE instance on the ACL for the Cloud SQL instance.
  2. Use the Cloud SQL proxy. This is a extra daemon you run on your GCE instance that allows you to connect via TCP on localhost or a socket.
Complete instructions for both of these options are available at https://cloud.google.com/sql/docs/mysql/connect-compute-engine.

On Mon, Jul 24, 2017 at 7:28 PM, jinguruxxx <jinguruxxx@gmail.com> wrote:
Hi
I seem to have a problem configuring a config.php which basically connects my website on the VM to an SQL database on Google SQL

I also have phpMyAdmin successfully installed and can access it via <VM_IPAddress>/phpMyAdmin

In turn, i have also successfully configured phpMyAdmin so that i can log in to the localhost database and the my Google SQL database.
This part of the process i have performed successfully for both First Generation and Second Generation instances

The part which is causing me headache is the seemingly simple addition of credentials to the config.php on my Google VM instance which needs to point to the relevant database.,

I'm sure you are familiar with this format:


// The MySQL credentials
$CONF['host'] = 'localhost';
$CONF['user'] = 'user';
$CONF['pass'] = 'password';
$CONF['name'] = 'database name';


$CONF['host'] = 'localhost'; is the part that is giving me a problem - i am normally used to just having it as localhost or pointing to a specific IP address
inputting the ip adress eg  34.125.258 of the database instance does not seem to work


seems to indicate 

$CONF['host'] = ':/cloudsql/project-id:region:sql-db-instance-name';
which for sake of example:
$CONF['host'] = ':/cloudsql/live-001:europe-west1:totaldata';

but this yields same result

Have i missed something?

Please assist! Getting quite frustrated by the process here and any help would be much appreciated!

Thanks in advance





--
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/6de8b295-89aa-4868-9a67-10b1f8c3c2dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
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/CAJZK_bbuc60gYBMArONRUs139o%3D_DKxkHRDFfaNbQaMErmtG2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

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

Hi,

The ":/cloudsql/project:region:id" instructions are for Google App Engine. If you are on Google Compute Engine, you have two options:
  1. Connect to the public IP address of your Cloud SQL instance. This requires you whitelist your GCE instance on the ACL for the Cloud SQL instance.
  2. Use the Cloud SQL proxy. This is a extra daemon you run on your GCE instance that allows you to connect via TCP on localhost or a socket.
Complete instructions for both of these options are available at https://cloud.google.com/sql/docs/mysql/connect-compute-engine.

On Tue, Jul 25, 2017 at 7:11 AM, jinguruxxx <jinguruxxx@gmail.com> wrote:
Hi - i am hoping this forum is still open for posts
I am experiencing a similar problem although not relating to Wordpress

I created a micro VM on Compute engine and created a LAMP stack
I uploaded my script which required an MySQL database created locally. All works fine

I then created 2 instance on Google SQL( First Generation and Second Generation with a database in each.
Following the documentation i set up credentials to allow access as well as making necessary adjustments to phpMyAdmin script so that i can access these databases from 
<myIPaddress>/phpMyAdmin

All good

BUT

Now i am stuck with actually connecting the web page to the remote Google SQL instance+database
I believe I am posting the HOST credentials incorrectly

Credentials are in a config.php file in path in the root folder var/www/html/includes/config.php

normally i have [excerpt]

$CONF = $TMPL = array();

// The MySQL credentials
$CONF['host'] = '"localhost"';
$CONF['user'] = 'username';
$CONF['pass'] = 'pwd';
$CONF['name'] = 'databasename';


i am using 

$CONF['host'] = ':/cloudsql/jinguru-live:europe-west1:jdb-gcpsql-002a';

When i try to load up the webpage i get

Failed to connect to MySQL: (2005) Unknown MySQL server host '":/cloudsql/jinguru-live:europe-west1:jdb-gcpsql-002a"' (2)Error:

Please let me know what i am doing wrong!!
I can provide further details re the Google Compute Engine and Google SQL credentials

THanks







On Monday, 17 October 2016 21:42:53 UTC+1, Alex (Cloud Platform Support) 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/a65b4b00-cee3-4b34-ac65-9e9ab9c60d1f%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
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/CAJZK_bbC37TaPxabkN5-84_ewOERcBzzsL%3DAZQuQUKS-RK235Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

[google-cloud-sql-discuss] Re: ERROR: must be owner of extension plpgsql

Hi Mike,

It does seems that the dump file you are trying to import includes some plpgsql statements requiring Superuser role. This role is certainly not available on hosted PostgreSQL.

It is unlikely that you need to import plpgsql related statements since by default, the database has the plpgsql extension already installed. So there is no need to install it again via the import.

The suggested workaround is to inspect you inspect your dump file and remove all sql statement related to "plpgsql".

--
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/20332947-0f53-499f-b38f-fa8d031e7f34%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

Hi - i am hoping this forum is still open for posts
I am experiencing a similar problem although not relating to Wordpress

I created a micro VM on Compute engine and created a LAMP stack
I uploaded my script which required an MySQL database created locally. All works fine

I then created 2 instance on Google SQL( First Generation and Second Generation with a database in each.
Following the documentation i set up credentials to allow access as well as making necessary adjustments to phpMyAdmin script so that i can access these databases from 
<myIPaddress>/phpMyAdmin

All good

BUT

Now i am stuck with actually connecting the web page to the remote Google SQL instance+database
I believe I am posting the HOST credentials incorrectly

Credentials are in a config.php file in path in the root folder var/www/html/includes/config.php

normally i have [excerpt]

$CONF = $TMPL = array();

// The MySQL credentials
$CONF['host'] = '"localhost"';
$CONF['user'] = 'username';
$CONF['pass'] = 'pwd';
$CONF['name'] = 'databasename';


i am using 

$CONF['host'] = ':/cloudsql/jinguru-live:europe-west1:jdb-gcpsql-002a';

When i try to load up the webpage i get

Failed to connect to MySQL: (2005) Unknown MySQL server host '":/cloudsql/jinguru-live:europe-west1:jdb-gcpsql-002a"' (2)Error:

Please let me know what i am doing wrong!!
I can provide further details re the Google Compute Engine and Google SQL credentials

THanks







On Monday, 17 October 2016 21:42:53 UTC+1, Alex (Cloud Platform Support) 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/a65b4b00-cee3-4b34-ac65-9e9ab9c60d1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.