📄️Error Establishing a Database Connection
If you see the error “Error establishing a database connection” in the OpenAdmin interface, it indicates that the database connection has failed.
📄️Connecting to MySQL Server from Applications in OpenPanel
OpenPanel runs each user service inside its own container. The MySQL/MariaDB container shares its Unix socket with the PHP containers (PHP-FPM and OpenLiteSpeed) of the same user, so PHP applications can connect to the database on localhost just like on a regular server. Other applications (Node.js, Python, Ruby, Java...) run in their own containers and connect through the container hostname instead.
📄️How to troubleshoot: Error establishing a database connection
If your website/application is alerting you that there was an error establishing database connection you should take the following steps in order to troubleshoot the issue:
📄️Domain for phpMyAdmin
Domain set for OpenPanel interface is also used for phpMyAdmin access: