GithubHelp home page GithubHelp logo

Comments (13)

Carrotman42 avatar Carrotman42 commented on June 23, 2024

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.

Carrotman42 avatar Carrotman42 commented on June 23, 2024

Are you still having trouble?

from cloud-sql-proxy.

Carrotman42 avatar Carrotman42 commented on June 23, 2024

Please reopen if you have any more thoughts or information for me to help debug.

from cloud-sql-proxy.

pmothais avatar pmothais commented on June 23, 2024

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.

Carrotman42 avatar Carrotman42 commented on June 23, 2024

from cloud-sql-proxy.

syclone avatar syclone commented on June 23, 2024

from cloud-sql-proxy.

pmothais avatar pmothais commented on June 23, 2024

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.

Carrotman42 avatar Carrotman42 commented on June 23, 2024

from cloud-sql-proxy.

Carrotman42 avatar Carrotman42 commented on June 23, 2024

from cloud-sql-proxy.

pmothais avatar pmothais commented on June 23, 2024

@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.

Carrotman42 avatar Carrotman42 commented on June 23, 2024

from cloud-sql-proxy.

syclone avatar syclone commented on June 23, 2024

from cloud-sql-proxy.

Carrotman42 avatar Carrotman42 commented on June 23, 2024

from cloud-sql-proxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.