Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Error establishing a database connection

The message Error establishing a database connection, or on a Dutch-language site Fout bij het maken van een databaseverbinding, means your website cannot reach the database or is not allowed to log in to it. Your files are still there, and usually your database is too.

The causes on our servers, from common to rare

  1. The details in your website's configuration file are wrong, especially after a move, a new installation or a new password.
  2. The database user is not (or no longer) linked to the database.
  3. The database is empty, for example because the import failed after a move.
  4. Damaged tables.
  5. Too many connections at once: the error log shows Too many connections or max_user_connections.
  6. Your package's storage is full.

How to fix it

  1. In DirectAdmin, open Databases. There you can see the full name of your database and the users linked to it.
  2. Open the configuration file in File Manager. For WordPress, that is wp-config.php in public_html.
  3. Compare the four values:
    • DB_NAME: the full database name, with your DA username and an underscore in front, such as wtsilefl_shop;
    • DB_USER: the full name of the database user, also with that prefix;
    • DB_PASSWORD: the password of that database user, not your DA password;
    • DB_HOST: localhost.
  4. Not sure about the password? Give the database user a new password in DirectAdmin and put exactly that password in wp-config.php.
  5. Check in phpMyAdmin whether the tables are really there. If not, import the database again.

When should you contact us?

Are the details correct, are the tables there and does the message still appear? First check Outages & maintenance, then get in touch.

Ask the AI assistant in My WebOké first, or create a ticket via Support centre and then Submit a ticket. Include:

  • the full address of the page where it goes wrong
  • the time it went wrong
  • what you were doing at that moment, for example saving, uploading or logging in
  • a screenshot of the message

Never send your password.

Detailed explanation: 'Error establishing a database connection'.

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…