root@kali:~# systemctl start postgresql
- Then we need to create and initialize the msf database with the msfdb command with the init option:
root@kali:~# msfdb initCreating database user 'msf'Enter password for new role: Enter it again: Creating databases 'msf' and 'msf_test'Creating configuration file in /usr/share/metasploit-framework/config/database.ymlCreating initial database schema
The msfdb command allows you to manage the Metasploit Framework database, not just initialize the database. To display all the msfdb options, run the command as follows:
root@kali:~# msfdbManage a metasploit framework database ...