Uhm .. I tried with MySQl, but my laptop didn't like it and yada yada yada, so i made a work-around with postgresql :-)
You can find my solution here: http://teh-geek.com/?p=136
hey all i cant seem to connect to a db or create one i get the following:
msf > db_connect root@metasploit3
[-] Error while running command db_connect: Failed to connect to the database: uninitialized constant MysqlCompat::MysqlRes
Call stack:
/opt/framework3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1841:in `db_connect_mysql'
/opt/framework3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1724:in `cmd_db_connect'
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:376:in `run_command'
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:338:in `block in run_single'
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `each'
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:332:in `run_single'
/opt/framework3/msf3/lib/rex/ui/text/shell.rb:143:in `run'
/opt/framework3/msf3/msfconsole:130:in `<main>'
Is there anyone who can help?
Uhm .. I tried with MySQl, but my laptop didn't like it and yada yada yada, so i made a work-around with postgresql :-)
You can find my solution here: http://teh-geek.com/?p=136
Many thanks i will give it a go.
pretty similar but you could try this too ---> http://www.backtrack-linux.org/forum...ostgresql.html
Try running db_connect –y /opt/framework3/config/database.yml at an msf> prompt. This will connect you to the built-in postgresql instance that's mentioned in 2901119's link above. In order for the db_connect command above to work, you'll need to start msfconsole from the gui menu option.
If I could figure out how to scuba dive & hack at the same time, there would be nothing I couldn't do...
Ensure that the mysql client is running?? -
/$ cd /etc/init.d
/$ ./mysql start
Might be worth trying.
Then the connect string should be something like db_connect root:toor@<ipaddress>/<optionalinstancename>
if the DB is not found, it should create one.
Adam
i tried with http://teh-geek.com/?p=136 but now successful! I much love bt5! WHAT TO DO?