How to Find 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

Manage My Databases cPanel

1. Sign in to your cPanel account.
2. From the dashboard, go to the Databases section.

Step 2: View current databases

Current databases

1. Click Manage My 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.

What to use for host and port

For an application running on the same JetHost account, the host is simply localhost and the port is the MySQL default, 3306. You usually don’t need to type the port for a local connection. If a connection fails with “access denied”, it is usually the wrong user or password rather than the host, so check those first.

Test that the details work

The quickest way to confirm your details are right is to open phpMyAdmin from cPanel and check that the database appears and opens. If your app still can’t connect, the cause is almost always a mismatch in one of the four values rather than the server itself. Re-check the exact database name including its prefix, confirm the user is actually assigned to that database, and make sure the password in your config matches the one set for the user. Small typos here are the most common cause of connection errors.

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.