Originally Posted by ClintBeastwood
I have had the same problem, switching back to ruby 1.8 and rebuilding the mysql module worked for me.
You'll need the follwing package:
Then switch back to ruby 1.8:
apt-get install libmysqlclient-dev
Select the first option.
update-alternatives --config ruby
Start metasploit and connect:
As for postgres, metasploit seems to come with its own postgres instance, you can connect with a config file by the -y switch, which is quite convenient:
db_connect -y /opt/framework3/config/database.yml