CiviContribute link to database error
This can happen if triggers aren't stripped from the db dump before you read it in to your db. This requires running something like

perl -pi -e 's#\/\*\!5001[7|3].*?`[^\*]*\*\/##g' dumpfile.sql


Where "dumpfile" needs replacing with the name of your db dump.