Member-only story
Step by step to add more than one postgresql database for backstage on Red Hat developer
3 min readDec 27, 2024
Step 1: Prerequisites
Ensure the following prerequisites are in place:
- Red Hat Developer Account: Ensure you have access to the Red Hat Developer portal.
- PostgreSQL Installed: PostgreSQL should already be installed or available on your environment.
- Backstage Application: Backstage should be up and running with an existing database.
- Access to Configuration Files: Ensure you can edit the
app-config.yaml
file for Backstage.
Step 2: Create a New PostgreSQL Database
- 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;