Most apps you'd run on hosting (WordPress, Joomla, Drupal, custom PHP) need a database. Creating one takes a minute.
Create a database
- Go to Services → click your hosting → Databases tile.
- Click Create database.
- Enter a name. Most hosts prefix it with your account username automatically (e.g.,
youraccount_wordpress). - Click Create.
The database is ready immediately, but it's empty and has no users yet.
Create a database user
- On the same Databases tile, click Create user.
- Enter a username (also typically prefixed automatically).
- Set a strong password.
- Click Create.
Grant the user access to the database
- On the Databases tile, click Add user to database (or similar).
- Pick the user and the database.
- Grant All privileges for typical apps. For more locked-down setups, pick specific privileges (SELECT, INSERT, UPDATE, etc.).
- Save.
The user now has access to the database. You can use these credentials in your application.
Connection details
When your application asks for database connection info, use:
- Host:
localhost(your app runs on the same server as the database) - Database name:
youraccount_dbname(whatever you named it, with the prefix) - Username:
youraccount_username - Password: the one you set
- Port: 3306 (default; only specify if your app needs it)
For WordPress's wp-config.php:
define('DB_NAME', 'youraccount_wordpress');
define('DB_USER', 'youraccount_wpuser');
define('DB_PASSWORD', 'your-password-here');
define('DB_HOST', 'localhost');
phpMyAdmin
For browsing and managing the database visually, phpMyAdmin is one click from the portal:
- Go to Services → click hosting.
- Find the phpMyAdmin SSO tile.
- Click. We sign you in automatically.
phpMyAdmin lets you run SQL queries, browse tables, import/export databases, and manage users.
Backups
We back up your databases nightly as part of the standard hosting backup. You can also export from phpMyAdmin manually:
- Open the database in phpMyAdmin.
- Click Export.
- Pick "Quick" or "Custom" — Quick gets you a
.sqlfile in seconds. - Save it locally.
To restore: phpMyAdmin → Import → upload the .sql file.
For larger databases (>100MB), the backup tools in cPanel are faster than phpMyAdmin's web export. Or schedule regular exports via cron.
Connecting from outside
By default, only localhost connections are allowed — your application running on the same server. If you need to connect from outside (a developer running queries from their laptop, an analytics tool elsewhere):
- Allow remote MySQL in cPanel under "Remote MySQL."
- Add the IP that needs access. You can use
%to allow any IP, but that's a security risk; prefer specific IPs. - Use the public hostname (your server's hostname, not
localhost) when connecting.
Generally we'd recommend not exposing MySQL publicly — use SSH tunneling or a VPN to reach the database instead.
Limits
How many databases you can have depends on your plan:
- Most shared plans: 5–25 databases.
- WordPress hosting: typically 5–10.
- VPS: unlimited.
The exact number is on your plan's spec sheet.