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 HostMaria - Cloud.

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

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

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What is MariaDB?

MariaDB is a fork of MySQL. The database structure and indexes of MariaDB are the same as MySQL....

What's the maximum MySQL database size allowed?

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

What is MS-SQL?

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

How do I manage my Microsoft SQL database?

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

Can I view my FTP, email address, or database passwords?

We encrypt all FTP, email and database passwords so they are not visible as plain text inside...