Hacker News new | ask | show | jobs
by Starlevel001 1406 days ago
> now you have to create a database, create a user, grant that user access to the database, setup credentials and start using them.

CREATE ROLE dumbo WITH LOGIN PASSWORD 'fuck';

CREATE DATABASE dumbo OWNER dumbo;

It's that easy.

2 comments

I only have to run these about once every year or two, and have to look them up every time.
Many developers don't run those commands very frequently, so they're easy to forget.