MySQL & phpMyAdmin
Create databases, import and export SQL dumps, and manage data with phpMyAdmin on Hoststack.pro.
Databases store your website's dynamic content — WordPress posts, WooCommerce orders, user accounts, and more. Hoststack.pro includes MySQL databases with phpMyAdmin on every plan.
Create a database and user
- Log in to cPanel and go to Databases → MySQL Databases.
- Under Create New Database, enter a name (e.g.
mysite) and click Create Database. The full name will becpaneluser_mysite. - Scroll to MySQL Users → Add New User. Enter a username and a strong password. Click Create User.
- Under Add User to Database, select your new user and database, click Add.
- On the privileges page, tick All Privileges and click Make Changes.
Note the database name, username, and password — you'll need them when configuring your application (e.g. WordPress wp-config.php).
phpMyAdmin — manage your database visually
- In cPanel, go to Databases → phpMyAdmin.
- Select your database from the left panel.
- Browse tables, run SQL queries, and manage your data.
Import a database (SQL dump)
- Open phpMyAdmin and select your database.
- Click the Import tab at the top.
- Click Choose File and select your
.sqlfile. - Set character set to utf8mb4 and click Import.
For large databases (>50 MB), the upload may time out. Use SSH or ask support to import the file directly from the server.
Export a database (backup)
- Open phpMyAdmin and select your database.
- Click the Export tab.
- Choose Quick format (SQL) and click Export.
- Save the
.sqlfile to your computer.
Database connection settings
Use these when configuring your application's database connection:
| Setting | Value |
|---|---|
| Hostname | localhost |
| Database name | cpaneluser_mysite |
| Username | cpaneluser_dbuser |
| Password | your chosen password |
Remote database access
To connect to your database from an external tool (TablePlus, Sequel Pro, DBeaver):
- In cPanel, go to Databases → Remote MySQL.
- Add your local IP address (find it at whatismyip.com).
- Connect using your server hostname (not localhost), port 3306, and your database credentials.
Database error in your application?
Double-check the hostname is localhost, the database name and username include the cPanel prefix, and the user has been assigned to the database with all privileges. Contact [email protected] if you need help.