Can I set my database hostname as ‘localhost’?

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

adeonhostCloud, 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.

Linux, WordPress, Windows and Managed VPS Platforms:

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

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.

MySQL database tools

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

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

image.png
  • 0 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

How to fix the "Error Establishing Database Connection" in WordPress

The Error Establishing Database Connection error is one of the most commonly experienced errors...

What is MS-SQL?

Microsoft SQL Server is a relational database management system (RDMS) developed by Microsoft. As...

What`s the maximum MySQL database size allowed?

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

How do I create a MySQL database in my.adeonhost.com?

You can create MySQL databases in seconds directly from your my.adeonhost.com control panel....

How do I download or back up my MySQL Database?

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