Knowledge BaseShared HostingCreate a MySQL database and user

Create a MySQL database and user

Shared Hosting 3 min read Updated March 2026

MySQL 8 and MariaDB 10.11 available. Each hosting plan comes with an account-scoped quota.

Create database

  1. cPanel → Databases → MySQL Databases.
  2. New Database: enter a name (prefix cpuser_ is auto-added). Click Create.
  3. Scroll to Add New User. Enter username and a strong password.
  4. Under Add User To Database, select user + database, grant ALL PRIVILEGES.

Connect from your app

DB_HOST=localhost
DB_PORT=3306
DB_NAME=cpuser_myapp
DB_USER=cpuser_myuser
DB_PASS=...

Remote MySQL is disabled by default. Enable in cPanel → Remote MySQL and whitelist your IP.

phpMyAdmin

cPanel → phpMyAdmin for a web UI. Auto-authenticates with your cPanel login.

Was this article helpful?

Still stuck?

Our team answers tickets 24/7. Median first response: 15 minutes.