The San Diego Padres have agreed to terms with Mike Shildt on a two-year contract to become their new manager, the team announced Tuesday.

Shildt, former manager of the St. Louis Cardinals, replaces Bob Melvin, who left San Diego for division rival San Francisco.