Use Code KBALL501M

50% OFF First Month!

on selected monthly services

Release Notes - MySQL Connector/J 5.1
Posted by on 18 July 2014 10:07 AM

Overview - MySQL Connector/J 5.1

This Release Note covers all point releases for MySQL Connector/J 5.1 that are offered by eApps. Upgrade instructions are included.

MySQL Connector/J 5.1 is only available for Virtual Servers running CentOS 6 or CentOS 7. If you are on a CentOS 5 (Webmin) or CentOS 4 (VPS) plan and need MySQL Connector/J 5.1, you will need to migrate to a CentOS 6 or CentOS 7 plan. Contact eApps Sales for more information.

Warning MySQL Connector/J 5.1 is a major release of the MySQL Java Connector. This release has introduced new functionality and significant changes to the existing MySQL Connector/J. If you are upgrading from any prior version of MySQL Connector/J to MySQL Connector/J 5.1, there is a HIGH RISK of data loss and downtime if you do not carefully test your existing database and application with this new version.

eApps recommends, as a best practice, to maintain a staging server where you can test software upgrades before moving them into production. This approach will allow you to minimize the risk of data loss and downtime of your production service when performing software upgrades. If necessary, you can rebuild your staging Virtual Server on demand so that you have a fresh installation to test on. If you need more information about setting up a Virtual Server for staging or testing, please contact eApps Sales.

IMPORTANT: MySQL Connector/J 5.1 has an extensive list of new features and changes. See the Official MySQL Connector/J Release Notes for a list of changes that may cause issues when upgrading: Please read this document carefully to understand all the changes in the MySQL Connector/J 5.1 release. Upgrading to this version may significantly impact the operation of your database and applications. All MySQL Connector/J documentation is located here:

eApps Release Notes for MySQL Connector/J 5.1.37
eApps Release Notes for MySQL Connector/J 5.1.31

How to Upgrade
MySQL Connector/J 5.1.x to MySQL Connector/J 5.1.y (newer version)

Highlighted Features and Fixes in MySQL Connector/J 5.1.37


  • Support for JSON data type
  • Compatible with Java SE 8
  • Support for Eclipse 4.4


  • Fix for Connector/J using incorrect timestamps when server was set to GMT and client to local time
  • Other authentication protocols will be tried if server is set for SHA256 but Connector/J authentication is not set

The Official Release Notes for MySQL Connector/J are available here -

Highlighted Features and Fixes in MySQL Connector/J 5.1.31


MySQL Connector/J 5.1.31 is a bug fix and security release, no new major features have been added


  • Fixed the misspelling of gatherPerfMetrics that was causing performance metrics to not be logged
  • Error in profileSQL causing a memory leak was fixed
  • The StringUtils.getBytes methods have been refactored

The Official Release Notes for MySQL Connector/J 5.1.31 are available here -

How to Upgrade

It is your responsibility to ensure that your application will work on the newer version of MySQL Connector/J. There may be incompatibilities that will affect how your application works. Please make sure that you have read the official Release Notes and Changelog, and have done any necessary testing before upgrading a production application.

Before upgrading MySQL Connector/J make a backup of your database. Follow the instructions for your database: MySQL or MariaDB.

You should also make a backup of your application, your configuration, and any tunings or changes you have made. If you do not have current backups and something goes wrong during the upgrade process, you could have data loss.

To upgrade MySQL Connector/J, you will need to work from the command line using SSH, and you will need to be able to work as the root user. You will need to use yum to upgrade the application.

MySQL Connector/J 5.1.x to MySQL Connector/J 5.1.y (newer version)

To update MySQL Connector/J to the newest version, you will need to use the yum update mysql-connector-java command as the root user.

[root@eapps-example ~]# yum update mysql-connector-java

Once the update is complete, test your applications to make sure they are working as expected.

(0 vote(s))
Not helpful

Comments (0)
Post a new comment
Full Name:
CAPTCHA Verification 
Please enter the text you see in the image into the textbox below (we use this to prevent automated submissions).