PostgreSQL Database
Setting Up PostgreSQL Locally
PostgreSQL is a powerful, open-source object-relational database system known for its robustness and advanced features. This guide provides instructions for installing and configuring PostgreSQL both natively and using Docker. Installing PostgreSQL
To verify the status of the PostgreSQL service, use:
Configuring PostgreSQL
- Access the PostgreSQL command line interface:
- Create a new user:
- Create a new database:
- Set a password for the user:
- Grant all privileges on the database to the user:
Installing PostgreSQL Using Docker
- Pull the PostgreSQL Docker image:
- Create a Docker volume to persist PostgreSQL data:
- Run the PostgreSQL Docker container:
- Verify that the Docker container is running:
You should see the container named CREDEBL listed.