Friday, 20 March 2015

[KALI LINUX] How to fix Metasploit "Failed to connect to the database" Error




Error: Failed to connect to the database

How to fix?

1- Type into your terminal
root@kali~#service postgresql start
root@kali~#service metasploit start
root@kali~#update-rc.d postgresql enable
root@kali~#update-rc.d metasploit enable

2-  Start the Metasploit console
root@kali~#msfconsole

3- Build the cache
msf>db_rebuild_cache