Skip to content

Instantly share code, notes, and snippets.

@FabienRCT
Created October 3, 2024 10:44
Show Gist options
  • Save FabienRCT/24c8ebc928422b54a029efa7330200fa to your computer and use it in GitHub Desktop.
Save FabienRCT/24c8ebc928422b54a029efa7330200fa to your computer and use it in GitHub Desktop.
"database msf has a collation version mismatch" on metasploit after a postgres database update
sudo msfdb start # if the database is not already running
sudo -u postgres psql
REINDEX DATABASE msf;
ALTER DATABASE msf REFRESH COLLATION VERSION;
REINDEX DATABASE postgres;
ALTER DATABASE postgres REFRESH COLLATION VERSION;
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment