I am facing a problem with an application that i am testing. It is been hosted for a matter of test and the DB CRUD works fine in the comon part of the system, but when the user tries to be redirected to its dashboard, he receives the follows message before the dashboard section is loaded:
Database connection failed badlyphp_network_getaddresses: getaddrinfo failed: Name or service not known
I have 3 files in my DB that have conection to the DB. I did this because it has a complexity in the system and it comes from an old system that i made work better. I works all fine locally but when on the hosting it displayes my this message. Any sugestions on what could be the issue? Thank you!
This error is basically saying the host cant be found. Are you using 'localhost' as the ip to connect to the database. If not check the ip of the database that you should be connecting with.