What is my database hostname?
Please note that in most cases, both Linux and Windows based shared hosting plans are using External Database servers and you should NOT leave it to localhost. VPS/Cloud based accounts might be setup to use the default "localhost" as database server, but this needs to be verified using the information below.
For Linux based plans, you will find the Database host in the MySQL section of cPanel control panel (Click on MySQL Databases under Databases section in cPaneL) or Plesk panel(VPS/Cloud users using Plesk panel).
For Windows based plans, you will find the Database host in the Space summary or in Plesk control panel for Windows based VPS/Cloud users that are using Plesk instead of WSP.