How to create a MySQL database and user
Many websites and applications need a MySQL database to store content and settings.
Steps
- Log in to cPanel.
- Open MySQL Databases.
- Create a new database.
- Create a new database user with a strong password.
- Add the user to the database.
- Select the required privileges. For most website installs, choose All Privileges.
- Save the changes.
Database naming
cPanel often prefixes database names and usernames with your cPanel username, for example accountname_dbname.
Connection details
For most sites hosted on the same cPanel account, the database host is localhost.