Contact

hs-icon-callcenter
Call
hs-icon-callcenter

Call us

Our support team is happy to help you, be it for technical or administrative issues. We’re there for you!

 

+41 (0)84 800 80 80
(Calls from Switzerland 8 centimes / minute)

Administration

Monday to Saturday
9.00 – 12.00 am
1.30 – 5.30 pm
 

Technical Support

Monday to Friday
8:00 am – 5:30 pm

Saturday
9:00 am – 4:00 pm

hs-icon-doc-write
Write
hs-icon-doc-write

Write to us

To be able to help you as quickly and effectively as possible, we kindly ask that you make your request as specific as possible. And of course you can contact us by email: support@hoststar.com

All fields marked with «*» are mandatory and must be completed.

 

Error message

Support > Tips & tricks > Database

The Most Common Database Error Messages and How to Fix Them

Database error messages can occur when working with MySQL or other relational databases. Here are some of the most well-known error messages and tips on how to resolve them: 

Access Denied for User

Cause: 

This error occurs when the username or password for accessing the database is incorrect, or the user does not have the necessary permissions. 

Solution: 

  • Verify that the username and password are correct. 
  • Ensure that the user has sufficient permissions for the specified database. 
  • Check the configuration file (e.g., config.php or wp-config.php) to ensure the credentials are correctly entered. 

Unknown Database databasename

Cause: 

The database you are trying to access does not exist or the name is misspelled. 

Solution: 

  • Check if the database name is correct. 
  • If the database doesn’t exist, create it using the command: 

 

CREATE DATABASE databasename;

Too Many Connections 

Cause: 

This error occurs when too many simultaneous connections to the database have been established, and the limit has been reached. Every database has a defined limit for concurrent connections. 

Solution: 

  • Check the application for unnecessary open database connections and ensure they are closed after use. 
  • Increase the connection limit in the MySQL configuration (e.g., in the my.cnf file): 

max_connections = 200

Table tablename doesn't exist 

Cause: 

This error appears when a table cannot be found in the database. This can happen if the table doesn’t exist, has been deleted, or the name is misspelled. 

Solution: 

  • Check if the table exists by running: 

SHOW TABLES; 

  • If the table doesn’t exist, recreate it with the necessary fields, or re-import it if it was accidentally deleted. 

 

These database error messages are common and can often be resolved quickly if the causes are understood. By carefully analyzing the error message, you can identify the issue and manage your database more efficiently. 

Was this article helpful?