Locating your MySQL database details via cPanel
You can easily locate your MySQL databases details by opening your cPanel account and selecting the MySQL® Databases sections:
Once there just scroll down to your required database and the details will be shown right under the Database and Privileged Users sections:
For database host, you’ll need to use localhost.
That’s it! Now you know the way to locate your MySQL databases details on cPanel