-1

Why isn't the database there?

postgres=# CREATE USER pavankat WITH PASSWORD 'dfjjelkfjls'
postgres-# CREATE database datathing
postgres-# GRANT RULE ON datathing to pavankat
postgres-# \c lateral-dev
FATAL:  database "lateral-dev" does not exist
Previous connection kept


 which psql
/usr/bin/psql

I have postgres 9.1

I'm using it for a rails application with ruby 2.0 and rails 4.0 and I'm on a computer running Ubuntu 12.04 LTS (32 bit)

Pavan Katepalli
  • 2,372
  • 4
  • 29
  • 52

1 Answers1

2

It needed a semicolon at the end. Like this:

CREATE database datathing;
Pavan Katepalli
  • 2,372
  • 4
  • 29
  • 52