Sunday, March 4, 2018

[google-cloud-sql-discuss] WordPress Cloud SQL Proxy Issue With Persistent Connection

Hi,


I made a WordPress instance on compute engine and attempted to set it up with Cloud SQL via Cloud SQL Proxy. I've successfully managed to build the connection as I verified it via 'mysql -u myUser -p -h 127.0.0.1' and connected to the database.


However, the issue comes when I refresh the WordPress website. Everytime I try to load the website (literally just typed and pressed enter via the browser), the terminal shoots out 'Client closed local connection on 127.0.0.1:3306' and then the website fails to load fully having broken links and images.


Can you provide a possible fix for this? Whenever I use the 'mysql' command, it works fine and the connection is not dropping. However, if it's the website itself, I'm encountering this issue.


Any inputs will be greatly appreciated!

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-cloud-sql-discuss/14b3d2b1-9474-4d12-9cba-6f78e2ee5758%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment