如何新增和删除postgres数据库
1、打开终端窗口。

2、sudo su postgres,这样我们就能进入这个postgres用户。

3、输入psql --version可以查看版本。

4、psql -l,可以查看数据库列表。


5、这个时候创建一个不重名的数据库,createdb test。


6、psql test就能进入test数据库,输入help可以查看有什么指令帮助。





7、dropdb test就是删除数据库。



声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
阅读量:162
阅读量:139
阅读量:59
阅读量:173
阅读量:173