标签:
1、sudo passwd postgres
2、sudo -u postgres createuser -P django_login
3、su postgres
4、psql
5、CREATE DATABASE django_db OWNER django_login ENCODING ‘UTF8‘;
6、CREATE USER dbuser WITH PASSWORD ‘password‘;
7、GRANT ALL PRIVILEGES ON DATABASE exampledb to dbuser;
标签:
原文地址:http://www.cnblogs.com/sywlneu/p/5155931.html