![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 7002 阅读 · 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 · 1512 阅读 · 0 评论