猫言猫语

严以律己·宽以待人·自强不息·知行合一

CentOS 7 安装 PostgreSQL 9.2

| CentOS 7 安装 PostgreSQL 9.2已关闭评论

yum install -y postgresql-server
postgresql-setup initdb
systemctl restart postgresql
systemctl enable postgresql
su - postgres
psql
\list
CREATE DATABASE demodb;
\connect demodb
CREATE TABLE demotable(title char(32));
INSERT INTO demotable (title) VALUES('title');
SELECT * FROM demotable;
\quit

评论已关闭。