Comments (13)
It sounds similar to #7?
Are you using -fuse
? I suggest using -instances
instead. If that also doesn't work then we can look into it more.
from cloud-sql-proxy.
Are you still having trouble?
from cloud-sql-proxy.
Please reopen if you have any more thoughts or information for me to help debug.
from cloud-sql-proxy.
Hi @syclone, did you find a way to solve this problem? I have exactly the same problem than you and I would like you explain me how did you fix it please.
Thanks.
from cloud-sql-proxy.
from cloud-sql-proxy.
from cloud-sql-proxy.
Hi @Carrotman42. Thanks for your answer :)
I tried these two commands :
The first one => ./cloud_sql_proxy -dir=/cloudsql -instances=<INSTANCE_CONNECTION_NAME> &
The second one => ./cloud_sql_proxy -dir=/cloudsql -instances=<INSTANCE_CONNECTION_NAME> -credential_file=<PATH_TO_KEY_FILE> &
But I don't know what is exactly the credential_file.
I'm running on CentOS 7 in a compute engine from Google Cloud Platform. I want to access to one mysql database on the Cloud SQL (from Google Cloud as well). I can access to this one by command line but not with my Laravel application which use PDO.
This command works to connect me on the database directly from my instance :
mysql --ssl-ca=<server-ca.pem> --ssl-cert=<client-cert.pem> --ssl-key=<client-key.pem> --host= --user= --password
Thanks.
Philippe
from cloud-sql-proxy.
from cloud-sql-proxy.
from cloud-sql-proxy.
@Carrotman42, yes I already read this documentation. But I read is not necessary to use this file if I am connecting to Cloud SQL from a Compute Engine instance. It's the case for me, then the database instance and the compute engine instance are on the same project on Google Cloud Platform.
So for me it's good, I think the proxy is correctly setted up because I can connect me to the database by command line. The problem is when I want to access to the database with my Laravel application, I have the following error :
SQLSTATE[HY000] [2002] Permission denied
I tried everything and I don't know why it still doesn't work :(
Philippe
from cloud-sql-proxy.
from cloud-sql-proxy.
from cloud-sql-proxy.
from cloud-sql-proxy.
Related Issues (20)
- Do not require strict order in env variables for connections HOT 2
- Add support for a lazy refresh
- pgbouncer + proxy with transaction pooling is slow HOT 23
- Is there any way to connect to MS SQL using domain credentials? HOT 7
- v2/tests: TestSQLServerAuthentication failed HOT 4
- Telemetry doesn't work with non-ADC
- v2/internal/proxy: TestCheckConnections failed HOT 2
- Connecting to cloud-sql using private-ip sometimes fails with a TLS handshake timeout HOT 7
- Availability of a Container Image on Google Artifact Registry HOT 2
- "Cloud SQL IAM service account authentication failed for user ..." intermittent errors when connecting to Postgres HOT 17
- CSQL_PROXY_ADDRESS requires an IP address but doesn't explicitly state so HOT 6
- 30s+ Hang When Using Manual Token Authentication HOT 7
- v2/internal/proxy: TestClientLimitsMaxConnections failed HOT 1
- v2/internal/proxy: TestClientCloseWaitsForActiveConnections failed HOT 1
- v2/internal/proxy: TestClientClosesCleanly failed HOT 1
- v2/internal/proxy: TestClosesWithError failed HOT 2
- v2/internal/proxy: TestClientConnCount failed HOT 2
- v2/internal/proxy: TestRunConnectionCheck failed HOT 2
- Automatic instance discovery isn't supported in v2 Proxy HOT 5
- Brief summary of the proposed feature
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloud-sql-proxy.