hi, when working with postgresql, if there's no database 'opensips', using the URL of the SQL database:'postgres://opensips:opensipsrw@127.0.0.1/opensips' reports "fatal error: database 'opensips' doesn't exist", but if there's a database 'opensips' already created, using the URL of the SQL database:'postgres://opensips:opensipsrw@127.0.0.1/opensips' reports "error: database 'opensips' already exists". Futher more, when there's no database 'opensips', using the URL of the SQL database:'postgres://opensips:opensipsrw@127.0.0.1/postgres' turns out no error, but creates the database named 'opensips' and all related tables are created into database 'postgres'. My environment: CentOS6.7, postgres9.6, opensips3.0-stable.
hi, when working with postgresql, if there's no database 'opensips', using the URL of the SQL database:'postgres://opensips:opensipsrw@127.0.0.1/opensips' reports "fatal error: database 'opensips' doesn't exist", but if there's a database 'opensips' already created, using the URL of the SQL database:'postgres://opensips:opensipsrw@127.0.0.1/opensips' reports "error: database 'opensips' already exists". Futher more, when there's no database 'opensips', using the URL of the SQL database:'postgres://opensips:opensipsrw@127.0.0.1/postgres' turns out no error, but creates the database named 'opensips' and all related tables are created into database 'postgres'. My environment: CentOS6.7, postgres9.6, opensips3.0-stable.
opensips-cli errors.txt