Home page logo

metasploit logo Metasploit 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 "" and accepting
TCP/IP connections on port 5432?

Call stack:
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:293:in `block in
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:287:in `each'
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:287:in `run_single'
/opt/framework3/msf3/lib/rex/ui/text/shell.rb:143:in `run'
/opt/framework3/msf3/msfconsole:130:in `<main>'
msf >

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
ran db_disconnect
db_driver mysql
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

mysql (2.8.1)

Joshua J. Drake


  By Date           By Thread  

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