Hi @eazybet. Thanks for being part of GoDaddy Community! With cPanel accounts, the hostname for your database is always 'localhost'. You should be able to use that in any of your connection strings for the databases set up on your cPanel account.
JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.