swich2015 / armitage

Automatically exported from code.google.com/p/armitage
0 stars 0 forks source link

uninitialized constant MysqlCompat::MysqlRes #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1 starting msfrpcd
2.starting configured mysql-server
3.trying to connect

What is the expected output? What do you see instead?
[*]Using database driver mysql
___
Unable to connect to database.
Make sure its running.
___
[-]Error while running command db_connect: Failed to connect to the 
database:uninitialized constant MysqlCompat::MysqlRes

Call Stack:
[...]

What version of Metasploit are you using (type: svn info)? On which
operating system?
Linux Mint 10(>>Ubuntu 10.10); metasploit version 3.5

Which database are you using?
mysql

Please provide any additional information below.
read that there is an  issue with ruby gems..

Original issue reported on code.google.com by Alex.Bol...@googlemail.com on 8 Dec 2010 at 11:45

GoogleCodeExporter commented 9 years ago
See the FAQ: 2. What does "[-] Invalid driver specified" mean?  

Original comment by rsmu...@gmail.com on 9 Dec 2010 at 3:22

GoogleCodeExporter commented 9 years ago
"msf > db_driver mysql
[*] Using database driver mysql"

I got that part fixed already, but the mysqlCompat Error is there anyway..

Original comment by Alex.Bol...@googlemail.com on 9 Dec 2010 at 9:44

Attachments:

GoogleCodeExporter commented 9 years ago
I'm having this exact same problem but with Mac OS X 10.6.7. Is there a 
solution?

Original comment by pvangu...@gmail.com on 17 Apr 2011 at 5:21

GoogleCodeExporter commented 9 years ago
According to this blog entry: http://baber.wordpress.com/category/backtrack/

sudo gem install --no-rdoc --no-ri -v=2.7 mysql -- 
--with-mysql-dir=/usr/local/mysql --with-mysql-config=/usr/bin/mysql_config

fixed the issue for him

Original comment by davidcroda on 5 Jun 2011 at 11:09

GoogleCodeExporter commented 9 years ago
I know this is a late reply (because this is a closed issue, so I don't see 
updates on it), but: Use postgresql with Metasploit. The full installer 
installs it for you on Windows and Linux. If you're not using the full 
installer or you're on MacOS X then use postgresql anyways. There are known 
issues with Metasploit and MySQL and I expect eventually MySQL support will go 
the way of sqlite3.

Original comment by rsmu...@gmail.com on 6 Jul 2011 at 7:38