August 05, 2026 · by CLIQHOST
Every dynamic website — whether it runs WordPress, Joomla, Magento, or a custom application — needs a MySQL database. cPanel provides a clean visual interface that lets you create and manage databases without writing a single SQL command. This guide walks you through the entire process from scratch.
A misconfigured database or overly broad permissions can lead to application errors, security vulnerabilities, or data loss. A few minutes spent on correct setup can save you hours of troubleshooting down the line.
https://yourdomain.com:2083).Here you'll see a list of existing databases and a form to create new ones.
shop.Note: cPanel automatically prepends your account username as a prefix. If your cPanel username is
cliquser, the database will be namedcliquser_shop.
Never use the root user or your general hosting account credentials for applications. Create a dedicated user instead:
webuser) and a strong password.The user is created but currently has no access to any database.
Once everything is set up, use these connection details in your application:
Host: localhost
Database: cliquser_shop
User: cliquser_webuser
Password: your_password
Port: 3306
For WordPress, these values go into the wp-config.php file:
define( 'DB_NAME', 'cliquser_shop' );
define( 'DB_USER', 'cliquser_webuser' );
define( 'DB_PASSWORD', 'your_password' );
define( 'DB_HOST', 'localhost' );
cPanel includes phpMyAdmin, a visual tool for managing tables, importing/exporting data, and running SQL queries.
.sql file (e.g., when migrating a site).Tip: Before making any major changes, always export a full database backup first.
ALL PRIVILEGES if the application only needs read access.admin123 exposes your database to brute-force attacks.Creating and managing MySQL databases in cPanel is a straightforward process when you follow the right steps. The key is separating users, using strong passwords, and granting only the minimum required permissions. These best practices protect your data and significantly reduce security risks.
If you need fast, reliable cPanel hosting for your project, CLIQHOST offers shared hosting plans with cPanel included, optimised for WordPress and other popular CMS platforms.
Real reviews from customers who trust CLIQHOST for performance, reliability and expert technical support.
"We moved our online shop from a foreign host and the difference is night and day — pages load instantly and support replies in minutes, in Romanian."
"Migrated 12 client sites to CLIQHOST. Free migration, zero downtime, and the cPanel setup is exactly what my team needed. Highly recommend."
"Our NVMe VPS handles traffic spikes without a sweat. Full root, local datacenter, and billing in MDL — everything we wanted from a provider."