How to Create a MySQL Database & User in cPanel
Most applications (WordPress, custom PHP apps, etc.) need a MySQL database. Here's how to create one and give a user access to it.
-
1
Open MySQL Database Wizard
In cPanel, click MySQL Database Wizard under "Databases" — it walks you through every step.
-
2
Create the database
Type a short database name and click Next Step. cPanel adds your account prefix automatically.
-
3
Create a database user
Enter a username and a strong password (use our Password Generator), then click Create User.
-
4
Grant privileges
On the privileges screen, tick ALL PRIVILEGES and click Next.
-
5
Save your details
Note the full database name, username and password — your application asks for these during setup.
localhost for apps running on the same VedHost account.