First create a MySQL Database and MySQL user on your cPanel
Database Connection Format.
Eg : If you create a Database as myclass and DB username as cladmin, ( we use webpanel as cpanel username In the following example. you need to replace your own cpanel username).
My SQL server (Host) : localhost
My SQL Database name : yourcPanelUserName_DatabaseName
My SQL Username : yourcPanelUserName_DBUserName
My SQL Password : YourDBPasswordHere.
yourcPanelUserName : Replace Your Correct cPanel Username.