What’s New in Connector/J 8.0?

https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-whats-new.html

Note

Connector/J 8.0 was formerly known as Connector/J 6.0; see Changes in MySQL Connector/J 8.0.7 for an explanation of the version number change. This section describes differences between Connector/J 8.0 and Connector/J 5.1.

Here is a summary of major new features of Connector/J 8.0 (for details on the differences between the Connector/J 5.1 and 8.0 and for instructions on migrating, see Section 4.4.1, “Upgrading to MySQL Connector/J 8.0”):

  • It supports MySQL 5.6, 5.7, and 8.0.
  • It supports the JDBC 4.2 specification.
  • It is a MySQL driver for the Java 8 platform.
  • It supports the new X DevAPI, through which native support by MySQL 5.7 and 8.0 for JSON, NoSQL, document collection, and other features are provided to Java applications. See Using MySQL as a Document Store and the X DevAPI User Guide for details.

https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-api-changes.html

4.4.1.3 Changes in the Connector/J API

This section describes some of the more important changes to the Connector/J API going from version 5.1 to 8.0. You might need to adjust your API calls accordingly:

  • The name of the class that implements java.sql.Driver in MySQL Connector/J has changed from com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver. The old class name has been deprecated.
  • The names of these commonly-used classes and interfaces have also been changed:
    • ExceptionInterceptor: from com.mysql.jdbc.ExceptionInterceptor to com.mysql.cj.exceptions.ExceptionInterceptor
    • StatementInterceptor: from com.mysql.jdbc.StatementInterceptorV2 to com.mysql.cj.interceptors.QueryInterceptor
    • ConnectionLifecycleInterceptor: from com.mysql.jdbc.ConnectionLifecycleInterceptor to com.mysql.cj.jdbc.interceptors.ConnectionLifecycleInterceptor
    • AuthenticationPlugin: from com.mysql.jdbc.AuthenticationPlugin to com.mysql.cj.protocol.AuthenticationPlugin
    • BalanceStrategy: from com.mysql.jdbc.BalanceStrategy to com.mysql.cj.jdbc.ha.BalanceStrategy
    • MysqlDataSource: from com.mysql.jdbc.jdbc2.optional.MysqlDataSource to com.mysql.cj.jdbc.MysqlDataSource
    • MysqlDataSourceFactory: from com.mysql.jdbc.jdbc2.optional.MysqlDataSourceFactory to com.mysql.cj.jdbc.MysqlDataSourceFactory
    • MysqlConnectionPoolDataSource: from com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource to com.mysql.cj.jdbc.MysqlConnectionPoolDataSource
    • MysqlXADataSource: from com.mysql.jdbc.jdbc2.optional.MysqlXADataSource to com.mysql.cj.jdbc.MysqlXADataSource
    • MysqlXid: from com.mysql.jdbc.jdbc2.optional.MysqlXid to com.mysql.cj.jdbc.MysqlXid

Comments

  1. My wife and i ended up being absolutely joyous that Michael managed to finish off his analysis through the entire ideas he got in your site. It is now and again perplexing just to choose to be giving out helpful tips that some other people might have been selling. And we discover we need the website owner to be grateful to for this. Those illustrations you have made, the straightforward site navigation, the relationships you can assist to foster – it’s got mostly remarkable, and it’s assisting our son and the family do think the article is pleasurable, and that’s unbelievably vital. Many thanks for all!

  2. I simply wished to thank you very much yet again. I am not sure what I would’ve created in the absence of these information contributed by you relating to such a problem. It became the horrifying setting in my position, nevertheless encountering a specialized strategy you treated the issue made me to jump with contentment. I am just thankful for your guidance and then hope you realize what an amazing job you happen to be getting into training people through your websites. I am certain you haven’t got to know any of us.

  3. I in addition to my buddies have been examining the great pointers on your web page then all of the sudden I got a horrible feeling I never thanked the web site owner for them. All of the women came as a consequence passionate to read all of them and already have undoubtedly been taking advantage of those things. I appreciate you for actually being simply helpful as well as for settling on such great useful guides most people are really desirous to learn about. Our own honest regret for not saying thanks to you earlier.

  4. I enjoy you because of each of your efforts on this website. My aunt really loves managing investigation and it’s really easy to understand why. I know all concerning the dynamic method you create simple solutions through your website and as well as foster response from others about this subject matter while our favorite child is certainly studying a lot. Have fun with the remaining portion of the new year. You’re the one performing a really great job.

  5. I simply desired to thank you so much all over again. I am not sure the things I would have done without the solutions contributed by you directly on such a subject. It was before a very difficult dilemma for me personally, however , understanding this specialised manner you treated that took me to leap with happiness. I am just grateful for your support and expect you are aware of a great job your are carrying out teaching people today via your blog post. Most likely you haven’t encountered all of us.

  6. I really wanted to type a comment in order to say thanks to you for all of the marvelous items you are showing on this website. My prolonged internet look up has finally been honored with reliable points to talk about with my family and friends. I ‘d assume that most of us website visitors actually are undeniably endowed to be in a fine community with so many lovely people with very beneficial pointers. I feel pretty fortunate to have discovered the web pages and look forward to really more brilliant minutes reading here. Thanks once more for everything.

  7. I am also commenting to make you understand what a cool experience our princess undergone going through your web site. She discovered a lot of details, not to mention what it is like to have a wonderful coaching mindset to get many more with ease fully grasp some complicated subject areas. You undoubtedly surpassed our expectations. Thank you for displaying these good, trusted, explanatory and even fun guidance on this topic to Janet.

  8. Thank you so much for giving everyone an exceptionally terrific possiblity to read articles and blog posts from this blog. It’s always very kind and as well , jam-packed with a lot of fun for me personally and my office acquaintances to visit your website at least three times in a week to read through the new items you have got. Of course, I am at all times satisfied with the fantastic tips and hints you give. Selected 3 points in this article are absolutely the best I’ve ever had.

  9. I needed to put you one bit of remark to be able to give thanks yet again for your fantastic advice you have provided on this website. It’s really wonderfully generous of people like you to give unreservedly exactly what many of us would have offered for an ebook to generate some money for their own end, particularly given that you could have tried it in the event you desired. The pointers also served like a good way to understand that other individuals have similar keenness similar to mine to realize good deal more on the subject of this matter. I am certain there are many more fun occasions ahead for people who go through your blog.

  10. I want to show my appreciation to this writer for bailing me out of this type of incident. After researching throughout the the net and meeting methods which were not beneficial, I assumed my life was done. Being alive without the approaches to the issues you have resolved as a result of your good guide is a crucial case, and those which could have in a negative way affected my entire career if I had not noticed the blog. Your own personal skills and kindness in maneuvering every part was vital. I’m not sure what I would have done if I hadn’t come upon such a step like this. It’s possible to at this point look ahead to my future. Thanks for your time very much for your professional and amazing guide. I will not hesitate to propose your blog post to any person who should have assistance on this issue.

  11. I definitely wanted to construct a quick comment in order to thank you for the remarkable secrets you are giving at this website. My particularly long internet lookup has at the end of the day been recognized with reputable insight to write about with my partners. I ‘d repeat that we website visitors actually are very blessed to be in a good place with many wonderful professionals with interesting tips. I feel very much blessed to have used your weblog and look forward to plenty of more awesome moments reading here. Thanks a lot once again for all the details.

  12. I in addition to my guys came reading the excellent techniques on your web page and quickly I got a terrible suspicion I never expressed respect to the site owner for those techniques. My young men are actually for this reason passionate to read all of them and already have without a doubt been taking advantage of them. I appreciate you for turning out to be indeed accommodating as well as for having certain terrific themes most people are really desperate to be aware of. My personal honest apologies for not expressing gratitude to you sooner.

  13. My spouse and i have been absolutely fulfilled when Peter managed to do his investigation from the ideas he was given through the blog. It’s not at all simplistic to simply happen to be releasing tips and hints which many others have been trying to sell. Therefore we take into account we have the blog owner to give thanks to for that. These illustrations you’ve made, the easy site navigation, the friendships you aid to create – it’s got most awesome, and it’s helping our son and our family understand the situation is exciting, which is really mandatory. Thank you for the whole thing!

  14. My spouse and i ended up being quite thankful Raymond managed to complete his reports with the precious recommendations he discovered from your very own weblog. It is now and again perplexing just to always be giving for free tips and tricks that many people may have been selling. So we acknowledge we’ve got the blog owner to appreciate because of that. The explanations you have made, the straightforward site menu, the relationships you help promote – it’s mostly great, and it’s facilitating our son in addition to us imagine that this issue is entertaining, and that is highly essential. Thanks for the whole thing!

  15. Needed to draft you the little bit of word to be able to give many thanks the moment again for these superb tips you’ve documented on this site. It is quite pretty generous of you in giving freely what a number of us would’ve marketed as an e book in making some bucks for their own end, most notably seeing that you might have done it if you wanted. Those points as well worked to be a great way to be certain that other individuals have similar eagerness the same as mine to know the truth a great deal more with regard to this issue. Certainly there are millions of more pleasurable situations ahead for those who check out your website.

  16. I simply desired to appreciate you all over again. I am not sure the things that I would have undertaken without these methods shared by you on this subject matter. Certainly was the frightening issue for me, but spending time with the very specialised fashion you resolved it forced me to leap for happiness. Now i’m happier for the assistance and in addition expect you really know what an amazing job that you are carrying out training others all through your webpage. More than likely you have never come across any of us.