Change the password of a database user

Skip to main content
Du bist hier:
Drucken

Change the password of a database user

This is how you set a new password for a database user in the hosting administration (Plesk). Further down you find the details you need to connect to the database from a database program.

Step 1: Open the hosting administration

Log in to the hosting administration (Plesk): How to log in

Step 2: Open User Management

Click «Databases» on the left (or, under «Websites & Domains», click «Databases» for your domain) and then «User Management» on the right.

Step 3: Select the database user

In the list, click the name of the user whose password you want to change.

Step 4: Set and save the new password

Enter the new password in «Password» and repeat it in «Confirm password». Click «OK».

Step 5: Update the password in your website

If a website uses this database user, also enter the new password in its configuration file, for WordPress for example in the file wp-config.php at DB_PASSWORD. Otherwise the website can no longer connect to the database.

Access data for the database server

For a database program such as HeidiSQL or MySQL Workbench, you need these details for a MySQL or MariaDB database:

Detail Value
Server your hosting server, for example srXX.firestorm.ch
Port 3306
Username the name of the database user
Password the password of the database user
Database the name of the database

You find the name of your server in the customer area under «Services» > «My services»: open your hosting, and on the «Hosting Information» tab it is shown next to «Server Name». You see the database name and user in Plesk for your domain under «Connection Info for FTP, Database», see Show FTP access data. The host shown there is localhost. This only applies to websites on the same server. From your own computer, connect using the server name.

Allow connections from outside

Whether a database user may connect from outside is set for the user itself. Open the user as in steps 2 and 3, choose «Allow remote connections from» under «Access control», enter the IP address of your internet connection and click «OK».

Only allow connections from your own IP addresses. With «Allow remote connections from any host», the database is open to login attempts from the entire internet. If you do not need access from outside, choose «Allow local connections only».

Related Post