A 500 error just means your PHP code has crashed, but it doesn’t tell why. It could be an unhandled error in the database connection, or it could be something else entirely which has nothing to do with the database connection at all.
So the first step is to figure out what the actual PHP error is.
We have an article about HTTP ERROR 500 errors here:
In short: you can enable Display Errors on your website through our panel, which lets you view the error on your website, which works for most sites. We don’t have any kind of error log file that you or we can use to check the error.