fastmonkeys / stellar

Fast database snapshot and restore tool for development
MIT License
3.86k stars 119 forks source link

default database name #14

Closed janrito closed 9 years ago

janrito commented 10 years ago

The stellar init command assumes that the database url does not contain a database name, it expects a url in the form of:

postgresql+psycopg2://<user>:<pass>@<host>/

if it does not contain the last / it stellar will add it.

When no database is defined, Postgresql assumes that there is a database named after the user, and attempts to connect to it. Something like:

postgresql+psycopg2://<user>:<pass>@<host>/<user>

If there is no database named after the user, the connection will fail.

kballenegger commented 10 years ago

Yeah, I'm having a similar problem. :+1:

Teemu commented 9 years ago

Duplicate