msfbm init code example
Example: database metasploit kali linux
Method 2021
Start database in metasploit kali linux
Try
1- sudo service postgresql start
2- sudo service mysql start
3- sudo msfdb init
Then
4- msfconsole
msf > db_status
Happy hacking!