当前位置:Gxlcms > 数据库问题 > postgresql怎么导入数据库

postgresql怎么导入数据库

时间:2021-07-01 10:21:17 帮助过:4人阅读

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

https://codeday.me/bug/20180824/228265.html

postgresql怎么导入数据库

标签:创建   createdb   导入数据   user   导入   令行   shel   创建数据库   path   

人气教程排行