Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

Can I set my database hostname as 'localhost'? - SIRSTEVEHQ CP

The answer to this question depends on the platform type that you are using at SIRSTEVEHQ!

SIRSTEVEHQ Managed Cloud Servers, AWS and GCP Cloud Servers: 

Yes, 'localhost' can be used as the database hostname on all Cloud Servers. Unlike our shared hosting platform types, a Cloud Server runs all services on the same single server, including MySQL - this means that localhost can be used as the database hostname.

Cloud, and WordPress Platforms:

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

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.

MySQLDatabases-compressor.png

'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 with SIRSTEVEHQ CP shared hosting as we split all services and have a strict 'one server, one rule' policy. 

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

large_image_de900239f5.png

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I create a MySQL database in SIRSTEVEHQ CP?

You can create MySQL databases in seconds directly from your SIRSTEVEHQ CP. This option is...

How do I manage my Microsoft SQL database? - SIRSTEVEHQ CP

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

How do I download or back up my MySQL Database? - SIRSTEVEHQ CP

There are various ways to export your MySQL databases for safe keeping or transfer. The first...

How do I check MySQL Database sizes across packages in SIRSTEVEHQ CP?

SIRSTEVEHQ provides an easy way to monitor and view all MySQL database sizes across all packages...

How do I import a .sql file via phpMyAdmin? - SIRSTEVEHQ CP

You can use phpMyAdmin to import an .SQL file with your database information. To do this: Log...