Member-only story

Step by step to add more than one postgresql database for backstage on Red Hat developer

Nafiul Khan Earth
3 min readDec 27, 2024

--

Step 1: Prerequisites

Ensure the following prerequisites are in place:

  1. Red Hat Developer Account: Ensure you have access to the Red Hat Developer portal.
  2. PostgreSQL Installed: PostgreSQL should already be installed or available on your environment.
  3. Backstage Application: Backstage should be up and running with an existing database.
  4. Access to Configuration Files: Ensure you can edit the app-config.yaml file for Backstage.

Step 2: Create a New PostgreSQL Database

  1. Access PostgreSQL:

Log in to your PostgreSQL server:

psql -U postgres

2. Create a New Database:

  • Run the following SQL command to create a new database:
CREATE DATABASE backstage_additional_db;

3. Create a User for the New Database:

  • Create a new user with a password:
CREATE USER backstage_user WITH PASSWORD 'securepassword';

4. Grant Permissions:

  • Grant the new user permissions on the database:
GRANT ALL PRIVILEGES ON DATABASE backstage_additional_db TO backstage_user;

--

--

No responses yet