To create a MySQL database, you’ll first have to be logged into cPanel. When you’re logged in, follow these instructions.
- In cPanel, click MySQL Databases.
- Right after the New Database field, type in the name of your database.
- Click Create Database.
You now know how to create a MySQL database in cPanel.. You may assign a user to the database and attach it to your script.