MySQL Connector/J 5.1 Developer Guide
See Chapter 2, Connector/J Versions, and the MySQL and Java Versions They Require.