There was a problem loading the comments.

Find your database connection details in Plesk (database name, user, host)

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Websites usually need four database connection values:

  • Database name
  • Database user
  • Database password
  • Database host (most often localhost on shared hosting)

This article explains how to find them on GARMTECH hosting.

Where to see database name and users in Plesk

  1. Log in to Plesk (via My.GARMTECH → Login to Plesk).
  2. Open Websites & DomainsDatabases.

Here you can see:

  • the list of databases (names),
  • the database users attached to each database.

Security note: for safety, Plesk does not display existing database passwords. If you do not know the password, you should set a new one (see below).

Database host on GARMTECH hosting

In most cases, websites hosted on GARMTECH shared hosting connect to the database on the same server, so the host is:

  • localhost

If your subscription uses a separate database server (rare / custom setups), the host can be different. In such cases, follow the values configured in your application.

Where to find the values in your website files

Even if you see database names/users in Plesk, your website still uses the values stored in its config file. Common examples:

WordPress

File: httpdocs/wp-config.php

define('DB_NAME', 'database_name');
define('DB_USER', 'database_user');
define('DB_PASSWORD', 'database_password');
define('DB_HOST', 'localhost');

Laravel

File: httpdocs/.env

DB_HOST=localhost
DB_DATABASE=database_name
DB_USERNAME=database_user
DB_PASSWORD=database_password

Other CMS

Look for files like config.php, configuration.php, settings.php, includes/config.php or similar.

How to reset the database password (if you don’t know it)

  1. In Plesk: Websites & DomainsDatabases.
  2. Open User Management (or click the database user).
  3. Set a new password and save.
  4. Update the password in your website config file (WordPress wp-config.php, Laravel .env, etc.).

Tip: changing the database user password without updating the website config will cause “Error establishing a database connection” (or similar) until you update the config.

Access the database safely

  • Use phpMyAdmin from Plesk (Databases → phpMyAdmin) for admin tasks.
  • Do not send your database password in tickets or chats. If you need to show an error, redact passwords from screenshots/logs. (/tickets/create/step1)

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

Tags

© GARMTECH