What is the database host name in my cPanel hosting account?
Because cPanel hosts your databases locally, use localhost
as the database's hostname.
For other information to use in your database connection strings, see View your database details for cPanel hosting.