When you configure Xray to use PostgreSQL, all the information about components is stored in PostgreSQL.
Stop the Xray service.
Edit the database connection details in the system.yaml configuration file.
shared: database: type: postgresql driver: org.postgresql.Driver url: "postgres://<DB URL>" #for example: localhost:5432>/xraydb?sslmode=disable username: xray password: password
Note
Database URL for Xray is
"postgres://<DB URL>"
, while for Artifactory it is"jdbc:postgresql://<DB URL>"
. Ensure that you use the correct notation.Start the Xray service.