My site was pointed to an IP without an attached domain. Now that the domain is pointed there, the pages stopped resolving and I get an error 500 message. After some trouble shooting I found:
A Database Error Occurred
Unable to connect to your database server using the provided settings.
Line Number: 207
which points to:
$query = ee()->db->get_where('sites', array('site_id' => $site_id));
I have looked at the database config file and nothing seems wrong. I took out the direct IP links and it now points to the domain. No usernames or passwords changed so any idea on what needs modifying?