Creating a MySQL Database
Most dynamic websites and applications require a MySQL database to store content, user accounts, and settings. SillyHost makes it easy to create and manage databases through cPanel.
Creating a Database in cPanel
- Log in to your cPanel control panel.
- Scroll to the Databases section and click MySQL Databases.
- Under Create New Database, enter a name for your database. The name will be prefixed with your cPanel username (e.g.,
username_mydb). - Click Create Database.
Creating a Database User
A database needs a user account to connect to it:
- On the same MySQL Databases page, scroll to MySQL Users.
- Enter a username and a strong password. Use the password generator for a secure password.
- Click Create User.
Assigning the User to the Database
- Scroll to Add User to Database.
- Select the user and database from the dropdown menus.
- Click Add.
- On the privileges screen, tick All Privileges to grant full access, or select only the specific permissions your application requires.
- Click Make Changes.
Connecting Your Application
To connect your website or application to the database, you will need these details:
- Database name – The full name including the prefix (e.g.,
username_mydb). - Database user – The full username including the prefix.
- Database password – The password you created for the user.
- Database host – Usually
localhostfor applications on the same server.
Using the MySQL Database Wizard
If you prefer a guided process, use the MySQL Database Wizard in cPanel. It walks you through creating a database, creating a user, and assigning privileges in a simple step-by-step format. This is ideal for beginners.