PostgreSQL初安装小记

来源:互联网 发布:淘宝店招制作要点 编辑:程序博客网 时间:2024/06/04 18:45

在使用deepdive的时候采用了PostgreSQL作为数据库

安装可以从deepdive的github获取

bash <(curl -fsSL git.io/getdeepdive) postgres

也可以分步安装postgresql的server和client

sudo apt-get install postgresqlsudo apt-get install postgresql-client

安装完,像mysql一样需要做一些配置


就是先把系统切换到postgres这个用户名,接这个默认的用户名首次登陆postgresql

创建新用户名,创建新用户名下的数据库,给新用户赋权…