Skip to content

Can't create databases after you drop them #193

Description

@Quintasan
backend on try-sequel [!?] via 💎 v3.2.0
❯ bundle exec rails sequel:create:all
rails aborted!
Sequel::DatabaseConnectionError: PG::ConnectionBad: connection to server at "::1", port 5432 failed: Connection refused
        Is the server running on that host and accepting TCP/IP connections?
connection to server at "127.0.0.1", port 5432 failed: FATAL:  database "backend_development" does not exist
/home/quintasan/sauce/lndb/backend/config/environment.rb:7:in `<main>'

Caused by:
PG::ConnectionBad: connection to server at "::1", port 5432 failed: Connection refused
        Is the server running on that host and accepting TCP/IP connections?
connection to server at "127.0.0.1", port 5432 failed: FATAL:  database "backend_development" does not exist
/home/quintasan/sauce/lndb/backend/config/environment.rb:7:in `<main>'
Tasks: TOP => sequel:create:all => environment
(See full trace by running task with --trace)

I'm pretty much it's because it will try to connect to the database specified in config/database.yml which will not exist since we just dropped it :)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions