Similar to some answers here, if you are using XAMPP on MacOS run the following:
% /Applications/XAMPP/xamppfiles/bin/mysql_upgrade --force --force