I have an app running on subdomain. MySQL data is not coming up

What is the name of the domain?

my.freightplatform.com

What is the issue you’re encountering

App is working fine, MySQL data is not coming up.

What steps have you taken to resolve the issue?

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

2 Likes

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.

Any ideas?

If the connection works after disabling Cloudflare, it would seem you are not connecting to localhost.

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.

If any settings on Cloudflare have an effect, you’re not connecting via localhost.

1 Like