[关闭]
@lniwn 2017-10-17T21:34:17.000000Z 字数 294 阅读 547

Postgresql安装笔记


数据库 博客

  1. sudo apt-get postgresql
  2. pip install Psycopg2
  1. sudo -u postgres createuser -s lniwn
  2. sudo -u postgres createdb -O lniwn -E 'UTF8' -W -T 'template0' oaoa
  1. sudo -u postgres psql
  2. \password [username]
  1. SQLALCHEMY_DATABASE_URI = 'postgresql://username:password@host:port/database-name'
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注