1.切换到postgres用户 : sudo su - postgres
2.在shell命令行下,创建数据库exampledb,并指定所有者为dbuser : sudo -u postgres -O dbuser exampledb
3. 导入数据库: pg_restore -d createdb filepath
参考链接:
http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql.html
1.切换到postgres用户 : sudo su - postgres
2.在shell命令行下,创建数据库exampledb,并指定所有者为dbuser : sudo -u postgres -O dbuser exampledb
3. 导入数据库: pg_restore -d createdb filepath
参考链接:
http://www.ruanyifeng.com/blog/2013/12/getting_started_with_postgresql.html
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。