Skip to main content

安装

brew install postgresql

psql -V

brew services start postgresql

# 启动
psql postgres

创建数据库

CREATE USER nodejs WITH PASSWORD 'nodejs';
# CREATE USER nodejs WITH SUPERUSER PASSWORD 'nodejs';
CREATE DATABASE nodejs OWNER nodejs;