How to Access HostGraber cPanel and Host a MySQL Database
This guide explains how to log in to HostGraber cPanel and create/manage MySQL databases. You can use this as reference documentation or publish it in your knowledge base.
Accessing HostGraber cPanel
Follow these steps to log in to your cPanel account:
- Open your preferred web browser.
- Enter the cPanel login URL:
Creating and Managing a MySQL Database in cPanel
Step 1: Create a New Database
- Log in to cPanel.
- Navigate to MySQL® Databases.
- Under Create New Database, enter a name for your database.
- Click Create Database.
Step 2: Create a Database User
- In the same section, scroll to MySQL Users.
- Enter the desired username and a secure password.
- Click Create User.
Step 3: Assign User to Database
- Scroll down to Add User to Database.
- Select the newly created user and the database.
- Click Add.
- Select All Privileges to grant full access.
- Click Save.
Step 4: Collect Database Connection Details
You will need the following information to connect your application:
- Database Name
- Database User
- Database Password
- Database Host (usually localhost)
Connecting Your Application to the Database
Use this standard connection format in your configuration file:
DB_HOST=localhost
DB_USER=your_user
DB_PASSWORD=your_password
DB_NAME=your_database
For further assistance, feel free to contact HostGraber Support.