Drop database in postgres
- Drop database from psql Note - while dropping a database, you need to connect to a database other than the db you are trying to drop.
postgresql configurationintermediate
by PostgreSQL
14 views
- Drop database from psql Note - while dropping a database, you need to connect to a database other than the db you are trying to drop.
1234567891011121314
postgres=#
\conninfo
You are connected to database "postgres" as user "postgres" on host "localhost" at port "5432".
postgres#
drop database "DBACLASS";
postgres$ pwd
/Library/PostgreSQL/10/bin
postgres$
./dropdb -e "DBACLASS"
Password:
SELECT pg_catalog.set_config('search_path', '', false)
DROP DATABASE "DBACLASS";
For complete article visit -Â >
https://dbaclass.com/article/drop-database-postgres/Please to add comments
No comments yet. Be the first to comment!