How to Connect to the MySQL Database
In order for your MySQL database to work as intended, it will need a script calling or querying the database for the information it stores.
In order to do this, you must connect your script to the database with a configuration file.
The Configuration file location will vary depending on the script, and it would be wise to check your scripts documentation for confirmation.
NOTE: You may also use "Softaculous Script Installer" to automatically configure a site, and databases if you're unsure of the steps below.
Database driven PHP scripts, such as Wordpress, WHMCS and Joomla, will generally have a default configuration file ready for you to edit with the appropriate information. Wordpress for example uses "wp-config.php", and Joomla uses "configuration.php".
Below you will find examples of what this access information will look like:
Host Name = localhost
Database Name = cpanelUsername_databaseName
Database Username = cpanelUsername_databaseUsername
Database Password = your generated password when you created the database
|Username = username||Database Name = dbname1|
|Database-Username = dbuser1||Database-User Password = RandomPassword123^|
/** MySQL database username */
/** MySQL database password */
/** MySQL hostname */