I have installed YOURLS on my site hosted with InfinityFree. When I try to go to the admin page, it just gives the error: Incorrect DB config, or could not connect to DB
PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution
I have asked on the YOURLS forums and they said this is a problem of InfinityFree. How do I fix this?
That’s not entirely true. YOURLS, by default, does not come with a public interface. If you only access the admin panel yourself and only create your own links, I don’t see any problems.
I would guess that’s an issue with the database hostname. Did you copy it as-is from the control panel or client area?