How to create a MySQL database and database user

How to create a MySQL database and database user

In the PULSEHOST Control Panel you can create a MySQL database for your website (for example for WordPress, a shop or your own application) together with a matching database user in just a few steps.

Step 1: Open the Databases section

Log in to the Control Panel, click Websites in the left menu and select your website. Then open the Databases tab at the top and click Add database.

Databases tab with the Add database button

Step 2: Enter the database name and create a user

  1. Enter a name in the field Database name. The prefix of your account (e.g. meinetes1_) is added automatically, so the full name will be e.g. meinetes1_testdb.
  2. Under Add database user, click Create new user.
  3. Enter a Username. The same prefix is added automatically here (e.g. meinetes1_testuser).
  4. Enter a Password or click the key icon next to the field to generate a secure password. The password needs at least 10 characters, including a lowercase letter, an uppercase letter, a number and a special character.
  5. Leave All database privileges checked so the user has full access to this database.
  6. Click Add.
Idea

Tip: If you already have a database user, you can simply tick it instead to give it access to the new database.

Warning

Important: Write down the password and keep it in a safe place – you will need it to connect your application to the database.

Add database form with database name, new user and password

Step 3: Check your new database

The new database now appears in the list together with the number of assigned users. In the Users tab you can see all database users and which databases they can access. With Add user you can create additional users later.

Users tab showing the database user and its database

Step 4: Find the connection details

Click the three dots (⋮) next to the database and choose Manage. Under Connection info you will find all details you need for your application:

  • Database name, username and password: as created in step 2 (including the prefix).
Info

Database host: If your website uses PHP (e.g. WordPress), simply enter localhost as host.

Notes

On the same page you can also open phpMyAdmin and import or export SQL files.

Connection info of the database with host details