getaddrinfo failed: Name or service not known - SOLVED
I've recently migrated my hosting from one server to another. I've uploaded the Concete files I backed up, recreated the database, and restored it. However, when attempting to load the site, I get the following:
An unexpected error occurred.
SQLSTATE[HY000]  php_network_getaddresses: getaddrinfo failed: Name or service not known
I'm a bit green dealing with MySQL databases and issues. Does anyone have any ideas on what might have gone wrong and what I might be able to do to fix it? Any insights would be greatly appreciated.
Host is currently Godaddy with a Linux CPanel account. Concrete version is 188.8.131.52.
Specifically: FTP into the site, navigate to the site's application/config folder and edit the database.php file. the 'sever' line needed to be changed from the old database's server file to "localhost."
Once I did that, it resolved the issue and the site loaded as expected.