Database-driven scripts, such as Wordpress, WHMCS, and Joomla, usually have a standard configuration file that you can edit with appropriate information.
Below you will find examples of what this access to information will look like:
Hostname = localhost (literally input localhost)
Database Name = cpanelUsername_databaseName
Database Username = cpanelUsername_databaseUsername
Database Password = whatever you have chosen
Username = joe1337
Database Name = wrdp1
Database Username = WP1
Database User Password = eHTb7%Pxa9
// ** MySQL Settings ** //
/** The name of the database for WordPress */
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */
Even though it is possible to connect to the database with your cPanel username and password, we do not recommend it. Every time you change or reset your cPanel password, the databases will stop working until the configuration files are updated.