Can I set my database hostname as 'localhost'?

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 DELIVERY 2 ME LTD.

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

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

  • 0 Utilisateurs l'ont trouvée utile
Cette réponse était-elle pertinente?

Articles connexes

What is MariaDB?

What is MariaDB? MariaDB is a fork of MySQL. The database structure and indexes of MariaDB...

How do I import a .sql file via phpMyAdmin?

How do I import a .sql file via phpMyAdmin? You can use phpMyAdmin to import an .SQL file with...

What's the maximum MySQL database size allowed?

What's the maximum MySQL database size allowed? At DELIVERY 2 ME LTD, each MySQL database you...

How do I create a MySQL database?

How do I create a MySQL database? You can create MySQL databases in seconds directly from your...

What is MS-SQL?

What is MS-SQL? Microsoft SQL Server is a relational database management system (RDMS)...

Powered by WHMCompleteSolution