Home page logo

metasploit logo Metasploit mailing list archives

Re: dropping and creating DB's with Postgres
From: Carlos Perez <carlos_perez () darkoperator com>
Date: Wed, 3 Apr 2013 19:36:51 -0400

You should use workspaces 

msf > workspace -h
    workspace                  List workspaces
    workspace [name]           Switch workspace
    workspace -a [name] ...    Add workspace(s)
    workspace -d [name] ...    Delete workspace(s)
    workspace -r <old> <new>   Rename workspace
    workspace -h               Show this help information

msf > workspace -a lab1
[*] Added workspace: lab1
msf > workspace 
* lab1
msf > workspace -d lab1 
[*] Deleted workspace: lab1
[*] Switched workspace: default

data can be keeper in them and exported out of them and reimported if you want that level of control also using 
db_export and db_import

The password for postgres should be in the dataase.yml as part of the configuration

On Apr 3, 2013, at 7:15 PM, Rene Sorensen <rsorensen () internaldrive com> wrote:

In Back Track 5 R3 version what are the commands to drop and create DB’s?  The traditional db_destory and create do 
not work any longer since postgres automatically connects on boot up. 
Secondly, is there a default password for postgres?  I’m asked for a password when making changes.    
Rene Sorensen
Director of IT
iD Tech Camps
Phone: 408-871-3738
Don’t miss out on iD Tech Camps (the World's #1 Technology Camp), iD Gaming Academy, iD Programming Academy, and iD 
Visual Arts Academy.  We offer technology programs for ages 7-18 at over 60 prestigious universities in the U.S.  We 
also offer online learning at iDTech365.com!  Visit www.internalDrive.com or call 1-888-709-TECH(8324) to register or 
learn more. Become a fan on Facebook!  Follow us on Twitter!


  By Date           By Thread  

Current thread:
[ Nmap | Sec Tools | Mailing Lists | Site News | About/Contact | Advertising | Privacy ]