Quick digiKam Tip: Back up digikamrc file

Do you use MySQL database? It seems like you are having issues with MySQL.