How to find your MySQL database details on cPanel
Need to plug a site or application into its database? This quick guide shows exactly where to locate the database name, username, host, and port inside cPanel.
Step 1: Log in to cPanel
1. Sign in to your cPanel account.
2. From the dashboard, go to the Databases section.
Step 2: View current databases
1. Click MySQL Databases.
2. In the Current Databases table, locate the database you want.
Database column → full database name (with account prefix).
Size column → current on‑disk usage.
Step 3: Identify the database user
1. In the same table, look at the Privileged Users column.
2. Note the associated username(s).*
If no user is shown, assign one first via Add User to Database.
Step 4: Copy credentials securely
1. Store the database name, username, password, host, and port in a password manager or secrets file.
2. Update your application config (wp-config.php
, .env
, or similar) with the correct values.
Knowing where your MySQL details live in cPanel saves time and prevents connection errors. If anything looks off, reach out to our Support Team for help.