Thursday, January 31, 2013

Re: Passing proxy settings to connect Cloud SQL using command line tool

Yep, I got this fixed eventually. In google_sql.sh, I changed...

{JAVA} -jar "${JAR}" "$@"

...to...

-Dhttps.proxyHost=<my_company_proxy_ip> -Dhttps.proxyPort=<my_company_proxy_port>


On Friday, January 25, 2013 11:53:51 AM UTC, InterfileDM DotModus wrote:
Did someone managed to find a fix for this problem

Exiting; Unable to open connection.
Unable to fetch OAuth2 tokens.


On Thursday, December 27, 2012 3:50:25 PM UTC+2, alan....@paddypower.com wrote:
Hey Fabio, 

Did this work for you in the end? No matter what I try, I only ever seem to get the following...

Exiting; Unable to open connection.
Unable to fetch OAuth2 tokens.

Very frustrating. Any advice appreciated, 

Cheers, 
Al

On Thursday, November 8, 2012 6:46:56 PM UTC, Fábio Peruchi wrote:
Thansk Rob!

Em quinta-feira, 8 de novembro de 2012 16h40min00s UTC-2, Rob escreveu:
The arguments you will want are from here.


I'd change the following line:

${JAVA} -jar "${JAR}" "$@"

to something like:

${JAVA} -jar "${JAR}" -Dhttp.proxyPort=8080 -Dhttp.proxyHost=webcache.mydomain.com "$@"


On Thu, Nov 8, 2012 at 10:38 AM, Rob Clevenger <rcle...@google.com> wrote:
You'll need to edit google_sql.sh (or .cmd) to setting the system properties used by Java for http proxy server support.


On Thu, Nov 8, 2012 at 10:35 AM, Fábio Peruchi <fhpe...@ciandt.com> wrote:
Hi!

Can I pass proxy server settings to connect to Cloud SQL via command line tool (google_sql) ? I can't find this information in command line tool documentation (https://developers.google.com/cloud-sql/docs/commandline).

Thanks in advance.

Fábio Peruchi


--
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.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment