To repair the Library database of iPhoto:
- First close all running instance of iPhoto.
- Press and maintain these 2 keys:
- Command and Option keys
- Open iPhoto.
- A small dialog with repair option shall be displayed.
- Release the keys
- Check "Repair the iPhoto Library Database" and click on Rebuild.