Last active
August 29, 2015 14:22
-
-
Save bsnux/7f9b6d96ad1eb4550d24 to your computer and use it in GitHub Desktop.
Creating PostgreSQL DB and user with UTF-8 encoding
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE ROLE username LOGIN ENCRYPTED PASSWORD 'password' NOINHERIT; | |
CREATE DATABASE db WITH ENCODING='UTF-8' OWNER=username; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment