Troubleshooting Common Database Connection Errors

When a database connection fails, the error message usually points to the problem. Below are the most common errors, what they mean, and how to fix them.

-> Authentication Issues


Invalid Username or Password

Error: Access denied for user 'username'@'host'

Fix:

  1. Select the ‘Databases’ tab on the sidebar, then choose your database and select the ‘Database Details’ button.
  2. Verify your database Username & Password

Cybrancee Panel Database Detail Dialog

User Not Allowed from Host

Error: Access denied for user 'username'@'ip'
Fix: You should enter the IP address of the server that is trying to connect to the database in the ‘Connection From’ field. Create a new database if you need to adjust it.

cybranceePanelDatabaseNewCOnnectionFromHightlighted

-> Server Availability


Database Service Not Running

Error: Connection refused
Fix: In Cybrancee Panel, databases run without downtime. If you notice any downtime, please open a support ticket.


Port Not Listening

Error: Can't connect to server on 'host' (10061)
Fix: By default, databases run on port 3306. Please check your configuration.

-> Network Problems


Host Unreachable

Error: Could not resolve host
Fix: Make sure the database server IP matches the one shown in the ‘Endpoints’ field in the panel.


Firewall Blocking Connection

Error: Connection timed out
Fix: Open the database port (3306 for MySQL, 5432 for PostgreSQL, etc.).

-> Resource Limits


Too Many Connections

Error: ERROR 1040 (HY000): Too many connections
Fix: Reduce some idle connections


Out of Memory

Error: Out of memory while trying to connect
Fix: Optimize queries to reduce load.

-> Configuration Issues


Wrong Database Name

Error: Unknown database 'dbname'
Fix: Confirm the database name.

cybranceeDatabasesNameHightlighted

Unsupported Authentication Method

Error: Unsupported authentication method
Fix: Update your database driver or set the user to a supported plugin.

-> Security & Encryption


SSL Certificate Error

Error: SSL connection error: certificate verify failed
Fix: Install valid certificates and configure your client to trust them.


Insecure Connection Blocked

Error: FATAL: no pg_hba.conf entry for host
Fix: Update pg_hba.conf (PostgreSQL) or adjust SSL rules.

Discord Bot Hosting

Starts at $1.49

External link icon
Was this article helpful?
Please Share Your Feedback
How Can We Improve This Article?
Table of Contents
Error Details*
Cancel