You need a MySQL database for most apps (WordPress, Laravel, custom PHP).
Step 1 — create the database
- cPanel → MySQL Databases.
- Under Create New Database, enter a name (e.g.
mysite) and click Create Database. - The full name will be
youruser_mysite(cPanel adds your username as a prefix). Note it down.
Step 2 — create a database user
- Scroll to MySQL Users → Add New User.
- Pick a username and a strong password (or click Password Generator).
- Click Create User. Note the full username (also prefixed).
Step 3 — give the user access
- Scroll to Add User To Database.
- Pick the user and the database, click Add.
- On the privileges page, tick ALL PRIVILEGES and save.
Your connection details
- Host:
localhost - Database: the prefixed name (e.g.
youruser_mysite) - Username: the prefixed user name
- Password: what you just set
To import an existing .sql file, open phpMyAdmin from cPanel, click your database in the left sidebar, then Import.