mailing list archives
Re: Problems connecting db
From: Jesus Prieto <jotapwn () gmail com>
Date: Sat, 14 May 2011 11:52:20 +0200
After svn update, the error disappeared. I can access to mysql now, but
still getting an error when using db_connect, that I am trying to figure
db_connect root:toor () 127 0 0 1/metasploit
[-] Error while running command db_connect: Failed to connect to the
database: could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:293:in `block in
Thanks a lot to everybody.
2011/5/13 Joshua J. Drake <jdrake () metasploit com>
On Fri, May 13, 2011 at 02:01:07PM -0400, Stephen Haywood wrote:
msfupdate takes me to revision 12610
db_connect msf:msf () 127 0 0 1/metasploit3
got the same error message.
Indeed, my initial assessment appears to be incorrect.
MysqlCompat/MysqlRes are only referenced from active_support. It must
be some kind of local problem with the mysql gem (as you previously
stated) since it works on my box.
msf > db_connect root () localhost/msf3
msf > db_status
[*] mysql connected to msf3
msf > gem list | grep mysql
[*] exec: gem list | grep mysql
Joshua J. Drake