All posts tagged: cli

Quickly close database connections on the command line

programming

One slightly annoying thing about Postgres over MySQL is that trying to reset a database with rake db:migrate:reset fails if there are connected clients and as I use Pow for development, killing the process doesn’t always free up the connections. To get around this you can quickly kill all connections with this command: [crayon-5f90040ba4ddb887242001/]