أهم النقاط
- A database, a user and privileges are all needed for an app to connect.
- cPanel prefixes database and user names with your account name.
- The host is usually localhost.
Most web apps store their content in a database. In cPanel you create three things: a database, a user, and the link between them.
The quick way: MySQL Database Wizard
- Open Databases → MySQL Database Wizard.
- Step 1: enter a database name and click Next Step.
- Step 2: enter a username and a strong password (use the generator), then Create User.
- Step 3: tick ALL PRIVILEGES and click Next Step.
MySQL Database Wizard — Step 2: Create Database Users
Note the full names
cPanel prefixes names with your account username. If your account is acme and you typed shop, the real names are:
Database: acme_shop
User: acme_shopuser
Host: localhost
Use these full names in your app’s configuration.
Manage existing databases
In MySQL Databases you can:
- Change a user’s password.
- Add an existing user to another database.
- Check and repair a database.
Import or export data
Open phpMyAdmin, select the database, then use Import to load a .sql file or Export to download one. For large databases, ask support or use the command line on a VPS — browser uploads have size limits.