I have contacted hosting provider, they are saying there is no error on their side. App was working fine prior to Cloudflare setup. Still running but no data…
my.freightplatform.com is proxied so make sure MySQL is connecting to localhost, the IP address of the server or a non-proxied DNS record as connecting to my.freightplatform.com won’t work as Cloudflare only proxies HTTP/S traffic (unless using Cloudflare Spectrum).
Thank you. I checked and it is connecting to localhost. For a test, I temporarily disabled Cloudflare and the data is coming up. I have another app on the same server, same structure and setup for Cloudflare and it is working fine. The only difference with this one is that this is on a subdomain.
I tested another scenario. Left Cloudflare enable but switched to “Development mode” and it is working fine. Does this mean the same thing, i.e. db not connecting to localhost? Thanks.