Hi Hampus,

Is your app.yaml file well configured with the database credentials? such
as connection name, database name etc etc.

DB_CONNECTION: mysql
DB_HOST: localhost
DB_DATABASE: xxxxxxx
DB_USERNAME: xxxxxx
DB_PASSWORD: xxxxxxxxxxx
DB_SOCKET: /cloudsql/<project_id>:us-central1:<database-instance>


If running on beta

beta_settings:
  # for Cloud SQL, set this value to the Cloud SQL connection name,
  cloud_sql_instances: <project_id>:us-central1:<database-instance>

You might want to check if you did not maybe omit something. Talking prior
to the fact you said it worked a couple
of days ago.

Regards,
Mua

On Wed, Sep 11, 2019 at 12:51 PM Hampus Boås <ham...@grafikfabriken.nu>
wrote:

> Hello,
>
> I have several projects on Google AppEngine Flexible, but one of my
> projects randomly after a couple of days looses the ability to connect to
> the database.
>
> I'm using the unix socket to connect and i have SQL Admin activated. If i
> debug the sql instance and the flexible instance they are both up and
> running.
>
> My DB User has privileges from any host.
>
> The PDO error says "SQLSTATE[HY000] [2002] No such file or directory".
>
> This has happen a couple of times now.
>
> Has someone have this issues before?
> I don't really know what to do here.
>
> Best regards Hampus
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-appengine+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-appengine/ecec867c-ebeb-4093-b603-127ed9e03449%40googlegroups.com
> <https://groups.google.com/d/msgid/google-appengine/ecec867c-ebeb-4093-b603-127ed9e03449%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CAHAhu-i1B07c09e%3Dc-JGAj1%2BXNQ92nv74sSvZARYOrqcq3WgEQ%40mail.gmail.com.

Reply via email to