
postgreSQL
bitterliquor
这个作者很懒,什么都没留下…
展开
-
postgresSQL启动与停止
[postgres@1 ~]$ pg_ctl --helppg_ctl is a utility to initialize, start, stop, or control a PostgreSQL server.Usage: pg_ctl init[db] [-D DATADIR] [-s] [-o OPTIONS] pg_ctl start [-D DATADIR] [-...原创 2020-01-19 15:01:54 · 1306 阅读 · 0 评论 -
psql 常用命令
一,命令行选项Usage: psql [OPTION]... [DBNAME [USERNAME]]-?, --help[=options] show this help, then exit -d, --dbname=DBNAME database name to connect to (default: "postgres") -h, --ho...原创 2020-01-19 13:08:11 · 523 阅读 · 0 评论 -
postgresql 大版本升级
从11.3升级到11.5系统中有用户postgres ,旧版在这个用户下安装,运行升级步骤:1。安装11。5$./configure --prefix=/home/pgsql/11.5/ --without-readline --with-pgport=5435$make$make install2.初始化数据库$/home/pgsql/11.5/bin/init...原创 2020-01-13 09:08:50 · 751 阅读 · 0 评论 -
CentOS7 安装postgreSQL11.5
新建用户$sudo useradd -d /data/postgres -m postgres$sudo passwd postgres$su - postgres$ wget http://ftp.postgresql.org/pub/source/v11.5/postgresql-11.5.tar.bz2$tar jxf postgresql-11.5.tar.bz2$...原创 2020-01-09 17:07:29 · 1059 阅读 · 1 评论 -
centos 安装postgreSQL
centos 安装postgreSQLPostgreSQL Yum Repositorycentos7$ sudo yum install https://download.postgresql.org/pub/repos/yum/9.5/redhat/rhel-7-x86_64/pgdg-centos95-9.5-2.noarch.rpm$ sudo yum in原创 2016-05-03 17:00:21 · 490 阅读 · 0 评论