To locate your MySQL database details on cPanel, you can use the "MySQL Databases" feature in the "Databases" section. Here are the steps to follow:
- Log in to your cPanel account.
- In the Databases section, click on the "MySQL Databases" icon.
- In the "Current Databases" section, you will see a list of all the databases associated with your cPanel account. The name of the database, the username, and the hostname will be displayed.
- In the "Current Users" section, you will see a list of all the users associated with your cPanel account. You can see the username, hostname and the database that the user is associated with.
You can also use the "PhpMyAdmin" feature in the "Databases" section to access the databases and users, you can also use it to manage the databases and users.
Please note that the hostname for the database is "localhost".
It's a good idea to keep a record of these details, as you will need them to configure your website or application to connect to the database. It's also a good idea to change the password for the database user and the database regularly, especially if you suspect that the database has been compromised.