Databases

System → Databases creates databases on the appliance’s PostgreSQL server (edon-pgsql) for your applications: the business software, a website, an internal…

What it is for

System → Databases creates databases on the appliance’s PostgreSQL server (edon-pgsql) for your applications: the business software, a website, an internal tool. Each database is born with a role (user) of the same name and a generated password. Atlas’s internal databases (users, mail, backup, telephony…) are managed by the system and do not appear in this list.

If PostgreSQL is not installed the page says the initial setup must be completed first; if it is installed but stopped (maintenance, restart) it says it cannot list the databases and that nothing has been lost: start it and reload.

How the page is laid out

  • The list shows each database with its size, with search at the top.
  • The list’s bar has «Refresh» and «New database».
  • With a database selected, the detail shows «Database name» and «Size»; above the detail two actions: «Regenerate password» and «Delete».
  • If the network cannot reach the database, an orange warning «PostgreSQL cannot be reached from the network» appears: the local firewall keeps port 5432 closed («Database» service off), or the service is published only on the appliance (127.0.0.1) until the next services update. The «Open the local firewall» button takes you to the settings.
Field Meaning Typical value
«Database name» Only lowercase letters and digits, starting with a letter, at most 48 characters; uppercase is lowered as you type. Some names are reserved to the system erp
«Database», «User», «Password» The credentials shown only once after creation or regeneration, each with the «Copy» button

Warning The password is not stored anywhere: the only moment you see it is right after creation (or regeneration). Copy it to a safe place before leaving the page; if you lose it, regenerate it. Regenerating makes the old one stop working at once: update the applications that use it.

Examples

Example: a database for the new business software.

  1. System → Databases → «New database».
  2. «Database name»: erp. Press «Create database».
  3. The box «Credentials generated — save them now» appears with database, user and password. Copy the three values into the application’s configuration file (appliance address, port 5432).
  4. Open the firewall: Settings → Local firewall → Services, turn on «Database» with «LAN and VPN sites» and apply (confirming within 60 seconds).
  5. From the business-software server (192.168.10.41) try connecting with the credentials.

Example: the password ended up in a chat.

  1. Select erp and press «Regenerate password».
  2. Confirm: the current password stops working at once.
  3. Copy the new credentials, update the application and restart it.

Example: removing a test database.

  1. Select the database and press «Delete».
  2. Read the question: the database and its role are deleted with all the data, with no possibility of undoing. Confirm.
  3. «Database deleted» appears. If the name was in use by an application, that application stops working.

Limits and pitfalls

  • The role created has access only to its own database.
  • «A database with this name already exists» and «This name is reserved by the appliance» are the most common errors at creation.
LET’S TALK INFRASTRUCTURE

Control starts with a conversation.

Tell us about your infrastructure. Let’s start with what you actually need.

Talk to an engineer