Mayers also scored in the first period for Canada, while Eric Staal added a goal.
Germany gave the Canadians all they could handle, peppering 30 shots on goalie Dwayne Roloson.
The Canadians' troubles were compounded by their inability to stay out of the penalty box. They wound up with 41 penalty minutes to Germany's 18.
Christoph Ullmann and Robert Dietrich had the goals for Germany.