For a website to use a database, four details must be entered in its configuration. You enter them during installation or in the website's configuration file.

Connection details

Field Value
Server (host) localhost (from another computer – see the article “Remote access to a database (Remote Database Access)”)
Database name cpaneluser_database (with prefix)
Database user cpaneluser_user (with prefix)
Password The password you created for the database user

Example: WordPress (wp-config.php)

define( 'DB_NAME', 'cpaneluser_database' );
define( 'DB_USER', 'cpaneluser_user' );
define( 'DB_PASSWORD', 'your-password' );
define( 'DB_HOST', 'localhost' );

Other systems

  • Joomla – the configuration.php file ($host, $user, $password, $db fields).
  • Connecting from your computer or another server: see the article “Remote access to a database (Remote Database Access)”.

1Where to see the names

Log in to cPanel – see the article “1.2. Logging in to cPanel”. In the “Databases” section of cPanel, open “Manage My Databases”. The “Current Databases” section shows the database names (“Database”) and the users added to them (“Privileged Users”).

cPanel does not show the password. If you do not remember it, set a new one (see the article “Database users: privileges and changing the password”).

Where to see the names

Security

  • Do not email or publish the configuration file – it contains the password.
  • If you change the database user's password, change it in the configuration file too, otherwise the website will stop working (see the article “Database users: privileges and changing the password”).

If you run into any difficulties, just write to us and we will help. support@area.lv

Was this answer helpful? 6 Users Found This Useful (29 Votes)