This article explains how to create a MySQL/MariaDB database and user in Plesk on your GARMTECH hosting. You need this for WordPress (manual install), Joomla, PrestaShop, and many other PHP applications.
Create a database
- Open Plesk.
- Go to Databases.
- Click Add Database.
- Enter:
- Database name (example:
wp_site)
- Database server (leave default unless you have a specific reason)
- Click OK.
Create a database user
- In Databases, open the created database.
- Under Users, click Add Database User (or Add User).
- Set:
- Username
- Password (use a strong password; avoid dictionary words)
- Make sure the user has access to the selected database (read/write permissions).
- Click OK.
Connect your website/application to the database
Every app needs these 4 values:
- Database name
- Database user
- Database password
- Database host (on most Plesk hosting it is
localhost)
Example: WordPress (wp-config.php)
define('DB_NAME', 'wp_site');
define('DB_USER', 'dbuser');
define('DB_PASSWORD', 'your-strong-password');
define('DB_HOST', 'localhost');
Useful tips
- Do not reuse passwords across services.
- If you import a website, ensure the database user has permissions on the imported database.
- To manage data in the browser, use phpMyAdmin (available from the Databases page).