Hi, The link you provided gave information about how to run it locally. But I am trying to run in from gcloud. I have actually followed all the steps mentioned in the link. I have enabled all the APIs and given access to my service account and user account. But still it fails. I don't know why it is not able to connect through cloudsql socket.
Please advise if there is any other way to get access to mysql from app engine On Mon, Jan 31, 2022 at 1:42 AM '[email protected]' via Google App Engine <[email protected]> wrote: > Hi, > > I have a found a similar issue and solution to overcome the issue here > [1]. Hope this helps in resolving the situation. > > [1] > https://stackoverflow.com/questions/57440588/cant-connect-to-local-mysql-server-through-socket-cloudsql-my-projectus-cen > > Thanks, > Sivaranjani > On Sunday, January 30, 2022 at 1:12:58 PM UTC-5 [email protected] > wrote: > >> Recently I have deployed my django application via gcp but I am unable to >> access mysql database from the app. It was working fine on a different >> project but don't know what is wrong with my latest project. I gave all the >> API access and permissions for [email protected] but >> still it is throwing me the same error. >> >> Error Message: >> >> OperationalError at /(2002, "Can't connect to local MySQL server through >> socket '/cloudsql/aevolveai-app-beta:us-central1:mysql-uat2' (111)") >> >> I have attached the full error message. >> Let me know what could be the reason behind this and advise how to >> resolve this. > > -- > You received this message because you are subscribed to a topic in the > Google Groups "Google App Engine" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/google-appengine/n-cxwHtwdC0/unsubscribe > . > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/google-appengine/f8981a55-1d4a-42e4-b4f5-0cada0c1ad79n%40googlegroups.com > <https://groups.google.com/d/msgid/google-appengine/f8981a55-1d4a-42e4-b4f5-0cada0c1ad79n%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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/CAFdpOzyPCcCkH1vG8mwsES5eZYFMVhXPX-0H_D0RpALNTN2ESQ%40mail.gmail.com.
