Steps For DB Installation
Steps For DB Installation
Configure PostgreSQL:
PostgreSQL creates a user with the same name as your operating system username. You
can change this by following the instructions provided during installation or by
using the createuser command.
Download pgAdmin:
Install pgAdmin:
In pgAdmin, click on the "Add New Server" button or navigate to the "Servers" menu
and select "Add Server".
Fill in the connection details for your PostgreSQL server, including the host,
port, username, password, and database.
Click "Save" to add the server to pgAdmin.
You should now be able to see your PostgreSQL server listed in pgAdmin's server
dashboard.
SQL script that you can use to create all the required tables for storing CVE
information in your PostgreSQL database:
cve: This table stores information about CVEs. It includes columns for the CVE ID,
description, CVSS score, and last modified timestamp. The cve_id column is defined
as UNIQUE to ensure that each CVE ID is unique in the database.
cve_year: This table stores information about the years for which CVE data is
available. It includes a single column for the year, which is defined as UNIQUE to
prevent duplicate entries.