Want to connect your PostgreSQL deployment to your application and need to find your hostname? A hostname is a label or name that is assigned to a host connected to a computer network and that is used to identify the host in various forms of electronic communication.
Easily grab your host name through a few simple steps through your ScaleGrid account.
Must have a PostgreSQL Deployment Setup
If you haven't already, you must first create a PostgreSQL deployment before you can grab your hostname.
- Go to your PostgreSQL Cluster Details page and select the ‘Overview’ tab.
- Find the Command Line Syntax section at the bottom of the page to copy the command that can be used to connect your PostgreSQL deployment through postgres client.
- The server name following the ‘-h’ is the hostname of your PostgreSQL deployment, and in this particular case, it is ‘SG-help-1-master.devservers.scalegrid.io’.
- Jot down your PostgreSQL hostname to use to connect to your website or application.
Updated over 2 years ago