Can I set my database hostname as ‘localhost’?

No, you would need to set the database hostname as the server that it's on at shezawebhost.

You can find this by going to the MySQL Databases icon within a package. The hostname you’ll need to use will be something similiar to ‘shareddb1b.hosting.stackcp.net’ although it's likely the database name on your package will be different.

 

'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 sheza webhost as we split all services and have a strict 'one server, one rule' policy. 

At the Sheza Web Host  data centres, web traffic, MySQL traffic and storage are all physically different machines, so 'localhost' doesn't work.

Was this answer helpful?

Related Articles

What’s the cost of a Microsoft SQL database?

For Microsoft SQL databases, there is a 70 RM monthly charge for a 1GB database. This covers the...

How do I import a .sql file via the command-line?

If you've set up SSH access for a package then you can run the following command-line...

Does ‘Back Up Multiple Sites’ backup databases?

Yes. You can back up multiple sites from the Back Up Web Hosting icon under the Reseller Manager...

How do I manage my Microsoft SQL database?

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

How do I create a MySQL database in Control Panel?

You can create MySQL databases in seconds directly from your Shezawebhost control panel.  This...