cPanel allows you to easily create a MySQL database, create a database user, and assign the user to the database.
Follow the Steps Below
- Log in to your cPanel account.
- Go to the Databases section.
- Click MySQL Databases.
- Under Create New Database, enter your database name and click Create Database.
- Scroll down to MySQL Users.
- Enter a username and create a strong password.
- Click Create User.
- Go to Add User To Database.
- Select the database user and database you created.
- Click Add.
- Select ALL PRIVILEGES or choose only the privileges required by your application.
- Click Make Changes.
Your MySQL database and user are now ready to use.
Important
cPanel may automatically add your cPanel username as a prefix to the database and database username.
For example:
cpuser_databasecpuser_dbuser
Keep your database password secure and do not share it publicly.