Website shows the error:
CONFIG_TEXT: Error while establishing a connection to the database
Site configured to connect to MySQL via domain name, hence remotely:
CONFIG_TEXT: $dbconfig['db_server'] = 'example.com';
The remote connections to MySQL are not allowed on the server.
Allow the remote connections by following recommendations from this article: How to enable remote access to MySQL database server.