postgresql
zhuocr
技术仔仔
展开
-
pgsql在linux导入导出数据
注意:命令直接在linux运行,不用进入pgsql一.导出数据库及具体表1.导出数据库:方式一:pg_dump -U postgres( -h localhost) -f c:\db.sql postgis 方式二:pg_dump -U postgres (-h localhost) postgis > c:原创 2017-02-22 10:13:43 · 6925 阅读 · 1 评论 -
linux(ubuntu)开放postgresql远程访问
先进入对应的postgresql的main目录cd etc/postgresql/9.5/main然后修改postgresql.conf文件sudo vim postgresql.conf 修改#listen_addresses = 'localhost' 为 listen_addresses='*'同时在对应的服务器提供商(例如腾讯云,阿里云)安全组开放5432端口。原创 2017-03-04 10:57:46 · 1490 阅读 · 0 评论