1

I'm unable to create a new database for the first time after installing postgres.app on my macbook pro
enter image description here

Anyone here can point me to the origin of the problem ?

1
  • 1
    Please do not post screenshots. Copy and paste raw text. Commented Nov 9, 2015 at 20:16

1 Answer 1

6

createdb is not a SQL statement, it's program for the command line (like psql or grep).

Inside psql you need to use the SQL statement CREATE DATABASE:
http://www.postgresql.org/docs/current/static/sql-createdatabase.html

And don't forget to terminate every SQL statement with a ; (if you had done that with createdb you would have gotten an error message immediately).

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.