Earlier quoted context omitted.
Any serious deployment know that one should never deploy mysql / mongodb / postgress with the default maintainer repo.
Serious: WHY?
You should always use the official repo ( with provided RPM / deb ) for that kind of app.
Example for CentOS 7.x:
yum info mysql-connector-java.noarch
Name : mysql-connector-java Arch : noarch Epoch : 1 Version : 5.1.25 Release : 3.el7 Size : 1.3 M Repo : base/7/x86_64 Summary : Official JDBC driver for MySQL
Quick look at when was this released: https://dev.mysql.com/doc/relnotes/connector-j/5.1/en/news-5...
(2013-05-01) Almost 6 years old.
Latest official version for 5.1.x was released 5 month ago: Changes in MySQL Connector/J 5.1.47 (2018-08-17)