Can I set my database hostname as ‘localhost’?

No, you would need to set the database hostname as the server that is listed in your control panel under the MySQL Databases page.

You can find this by going to the ‘MySQL Database’ icon within your control panel. 

'localhost' generally means the MySQL databases are hosted on the same server as the websites, which is quite common in the web hosting industry with hosts that have a 'single-server' approach where all services run from the same machine.

It's different at ChiefHosting.co.uk as we split all services and have a strict 'one server, one rule' policy.

At the ChiefHosting datacentre, web traffic, MySQL traffic and storage are all physically different machines, so 'localhost' doesn't work.

  • hostname, database
  • 0 Users Found This Useful
Was this answer helpful?

Also Read

What’s the cost of a Microsoft SQL database?

For Microsoft SQL databases, there is a £13.99 monthly charge for a 1GB database. This covers...

How do I manage my Microsoft SQL database?

We recommend using SQL Server Management Studio (SSMS) for managing your Microsoft SQL databases....

What’s the maximum MySQL database size allowed?

At ChiefHosting, each MySQL database you create can store up to 1024 MB (1 GB) of data. As...