This problem has multiple causes. Read the initial instructions under each solution below to ensure you're on the right track.
You're working on a legacy project? Check the version of
the production database using SELECT VERSION(). If it
is indeed 5.7 then this is the right path to follow!