DOCS

Creating a new MySQL database

How to create a database and a user in cPanel and link them with the right privileges.

Aktualisiert 05.10.2026. 2 Min. Lesezeit

Most applications (WordPress, Joomla, web shops) need a database, a database user and a password. Everything is created in cPanel, and the number of databases depends on your plan.

  1. In cPanel open Databases → MySQL Databases.
  2. Under Create New Database enter a name (e.g. shop) and click Create Database. cPanel automatically adds your account prefix, so the full name will be e.g. scyhost1_shop.
  3. Under MySQL Users → Add New User enter a username and a strong password (use the Password Generator). Store the password somewhere safe.
  4. Under Add User To Database choose the user and the database and click Add.
  5. On the next screen tick ALL PRIVILEGES and click Make Changes.

Your application will need four values: database name, user, password and host (usually localhost).

You browse the contents of the database in phpMyAdmin, and connecting from code is described in Connecting to a database from PHP.

War dieser Artikel hilfreich?

Verwandte Artikel

Still need a hand?

Open a ticket and we will reply by email. The whole team sees your request.