Tests the Java Database Connectivity (JDBC) connection to the PostgreSQL instance (does not test for the existence of a GitCentric database.
kandoMaintain testconn
Test the JDBC connection to the PostgreSQL database instance for GitCentric, specifying the DB user account but having kandoMaintain prompt for the DB password:
kandoMaintain testconn -u postgres
kandoMaintain prompts you to enter the database admin password, and uses the default connection string jdbc:postgresql://localhost:5075/kando since you did not specify the -c <dbconnectstring> option.
jdbc:postgresql://<host>:<port>/<dbname>If you do not specify -c for a command that requires it, kandoMaintain assumes the default value jdbc:postgresql://localhost:5075/kando. If you do specify -c, then jdbc:postgresql:// at a minimum is required. Partial connection strings will have default values automatically supplied. For example, if you specify jdbc:postgresql://, kandoMaintain assumes a <host> of localhost, a <port> value of 5075 and a <dbname> of kando.
For example:
DB_USER=postgres DB_PASS=postgres DB_CONNECT =dbc:postgresql://localhost:5075/kando