Tools
Rename or drop a default empty PostgreSQL embedded database on Web Help Desk
This article provides the steps to rename or drop a default empty PostgreSQL embedded database via a command line
First published date
Last published date
Overview
Product section
Resolution
Rename/Drop default empty PostgreSQL embedded database
Windows
- Open cmd > enter: cd C:\Progra~1\WebHelpDesk
- Enter: pgsql9\bin\psql -h 127.0.0.1 -p 20293 -U whd -d template1
- If prompted for the database password, enter your database password and execute the following statements:
- ALTER DATABASE whd rename to whd_old;
- CREATE DATABASE (enter the password for the database without brackets);
- Exit psql tool: \q and press Enter.
Virtual Appliance (Linux)
- Open cmd > enter: cd /usr/local/webhelpdesk/
- Enter: sudo pgsql9/bin/psql -h 127.0.0.1 -p 20293 -U whd -d template1
- If prompted for the database password, enter your database password and execute the following statements:
- ALTER DATABASE whd rename to whd_old;
- CREATE DATABASE whd (enter the password for the database without brackets);
- Exit psql tool: \q and press Enter.