A MySQL database is used for dynamic websites such as WordPress, Laravel, Joomla, and other CMS or PHP-based projects. Below is a complete guide on how to create a database, a user, and manage it using phpMyAdmin.
Accessing the MySQL Databases section
After logging into the control panel:
- Go to the Databases section
- Click on MySQL Databases
Here you will see:
- Existing Databases
- Existing Database Users
- The button: Create a Database or a User
As shown in the screenshot, the “Create a Database or a User” function allows you to create everything in one form at once:
- A MySQL database
- A MySQL user
- Automatically assign the user access to the database
This is the simplest and recommended method.
1. Create a Database
In the Database field, enter the database name. The system will automatically add your account prefix.
For example: yourwebsitege_db
2. Create a User
In the Database User field, enter the username. Create a strong password or use the generator.
For example: yourwebsitege_dbuser
Access Type
- Local (this server only) — standard and recommended
- Remote — only if you plan to connect from an external server
Automatic Access Assignment
In the form, the option “Grant user access to database” is already selected.
This means that after clicking Submit, the system will automatically:
- Create the database
- Create the user
- Link the user to the database
- Assign the necessary privileges
No manual linking is required.
After completion:
In Existing Databases, you will see:
yourwebsitege_db
In Assigned Users, you will see:
yourwebsitege_dbuser@localhost
This means everything has been configured correctly.
Using phpMyAdmin
To manage your database:
- Go back to the Databases section
- Click on phpMyAdmin
phpMyAdmin allows you to:
- Create tables
- Insert data
- Run SQL queries
- Export the database (backup)
- Import a database (upload a .sql file)
- Optimize tables
If the database is new, you will see the message: “No tables found in database.”
This is normal — tables will be created automatically when you install a CMS (for example, WordPress).
Using the Database in Your Website
In your website configuration (e.g., wp-config.php), you will need:
- Database Name
- Database User
- Database Password
- Database Host (usually:
localhost)
Example:
Important Recommendations
- Always use a strong password
- Store your password securely
- Do not share database access with third parties
- If you do not plan to use remote connections, keep Access Type: Local
Common Issues
If your website shows:
“Error establishing a database connection”
Check the following:
- Whether the database name is correct
- Whether the user is properly assigned to the database
- Whether the password is correct
- Whether DB_HOST is set to
localhost
A MySQL database is a core component of your dynamic website. Proper creation and configuration are essential for stable website performance.