Restoring the status of your host
When you finish the tutorial, you can restore your host machines to their original state. Use the following instructions to clean up your host and start over from scratch.
Stopping and dropping the database
Follow these steps to stop and/or drop your database. A database must be stopped before it can be dropped.
-
If connected to the database, disconnect by typing
\q
. -
In the Administration Tools Main Menu dialog box, click Stop Database and click OK.
-
In the Select database to stop window, select the database you want to stop and click OK.
-
After stopping the database, click Configuration Menu and click OK.
-
Click Drop Database and click OK.
-
In the Select database to drop window, select the database you want to drop and click OK.
-
Click Yes to confirm.
-
In the next window type
yes
(lowercase) to confirm and click OK.
Alternatively, use the delete_example
script, which stops and drops the database:
-
If connected to the database, disconnect by typing
\q
. -
In the Administration Tools Main Menu dialog box, select Exit.
-
Log in as the database administrator.
-
Change to the
/examples
directory.$ cd /opt/vertica/examples
-
Run the delete_example script.
$ /opt/vertica/sbin/delete_example Vmart
Uninstalling Vertica
See Uninstall Vertica.
Optional steps
You can also choose to:
-
Remove the
dbadmin
account on all cluster hosts. -
Remove any example database directories you created.