There was a problem loading the comments.

Create a database and user in Plesk (MySQL/MariaDB)

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

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

  1. Open Plesk.
  2. Go to Databases.
  3. Click Add Database.
  4. Enter:
    • Database name (example: wp_site)
    • Database server (leave default unless you have a specific reason)
  5. Click OK.

Create a database user

  1. In Databases, open the created database.
  2. Under Users, click Add Database User (or Add User).
  3. Set:
    • Username
    • Password (use a strong password; avoid dictionary words)
  4. Make sure the user has access to the selected database (read/write permissions).
  5. 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).

Share via
Did you find this article useful?  

Related Articles


Comments

Add Comment

Replying to  

Tags

© GARMTECH