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
out:

 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?


Call stack:
/opt/framework3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:2028:in
`db_connect_postgresql'
/opt/framework3/msf3/lib/msf/ui/console/command_dispatcher/db.rb:1731:in
`cmd_db_connect'
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:331:in
`run_command'
/opt/framework3/msf3/lib/rex/ui/text/dispatcher_shell.rb:293:in `block in
run_single'
/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

_______________________________________________
https://mail.metasploit.com/mailman/listinfo/framework

  By Date           By Thread  

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