You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2022/07/29 09:20:05 UTC

[ofbiz-framework] branch trunk updated: Improved: Updated mysql jdbc-driver class from com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver (OFBIZ-12675) (#529)

This is an automated email from the ASF dual-hosted git repository.

deepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 6013c74c22  Improved: Updated mysql jdbc-driver class from com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver (OFBIZ-12675) (#529)
6013c74c22 is described below

commit 6013c74c2243f0f7ebb6a8e3842c9ec4190cb76f
Author: Deepak Dixit <de...@hotwax.co>
AuthorDate: Fri Jul 29 14:49:59 2022 +0530

     Improved: Updated mysql jdbc-driver class from com.mysql.jdbc.Driver to com.mysql.cj.jdbc.Driver (OFBIZ-12675) (#529)
    
    MySQL Connector/J 8.0 is highly recommended for use with MySQL Server 8.0 and 5.7. Please upgrade to MySQL Connector/J 8.0.
    https://dev.mysql.com/doc/connector-j/8.0/en/
---
 README.adoc                              | 2 +-
 framework/entity/config/entityengine.xml | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.adoc b/README.adoc
index 069954ada4..b8f99b3b8e 100644
--- a/README.adoc
+++ b/README.adoc
@@ -837,7 +837,7 @@ options:
 
 * Search for the JDBC driver in https://bintray.com/bintray/jcenter[jcenter] and
 place it in build.gradle dependencies e.g.
-`runtime 'mysql:mysql-connector-java:5.1.36'`
+`runtime 'mysql:mysql-connector-java:8.0.30'`
 +
 OR
 * Download the JDBC driver jar and place it in $OFBIZ_HOME/lib or the lib
diff --git a/framework/entity/config/entityengine.xml b/framework/entity/config/entityengine.xml
index e9abf07632..6c3cac6932 100644
--- a/framework/entity/config/entityengine.xml
+++ b/framework/entity/config/entityengine.xml
@@ -357,7 +357,7 @@ access. For a detailed description see the core/docs/entityconfig.html file.
         <read-data reader-name="ext-test"/>
         <read-data reader-name="ext-demo"/>
         <inline-jdbc
-                jdbc-driver="com.mysql.jdbc.Driver"
+                jdbc-driver="com.mysql.cj.jdbc.Driver"
                 jdbc-uri="jdbc:mysql://127.0.0.1/ofbiz?autoReconnect=true&amp;characterEncoding=UTF-8"
                 jdbc-username="ofbiz"
                 jdbc-password="ofbiz"
@@ -391,7 +391,7 @@ access. For a detailed description see the core/docs/entityconfig.html file.
         <read-data reader-name="ext-test"/>
         <read-data reader-name="ext-demo"/>
         <inline-jdbc
-                jdbc-driver="com.mysql.jdbc.Driver"
+                jdbc-driver="com.mysql.cj.jdbc.Driver"
                 jdbc-uri="jdbc:mysql://127.0.0.1/ofbizolap?autoReconnect=true&amp;characterEncoding=UTF-8"
                 jdbc-username="ofbiz"
                 jdbc-password="ofbiz"
@@ -425,7 +425,7 @@ access. For a detailed description see the core/docs/entityconfig.html file.
         <read-data reader-name="ext-test"/>
         <read-data reader-name="ext-demo"/>
         <inline-jdbc
-                jdbc-driver="com.mysql.jdbc.Driver"
+                jdbc-driver="com.mysql.cj.jdbc.Driver"
                 jdbc-uri="jdbc:mysql://127.0.0.1/ofbiztenant?autoReconnect=true&amp;characterEncoding=UTF-8"
                 jdbc-username="ofbiz"
                 jdbc-password="ofbiz"
@@ -454,7 +454,7 @@ access. For a detailed description see the core/docs/entityconfig.html file.
         <read-data reader-name="tenant"/>
         <read-data reader-name="seed"/>
         <inline-jdbc
-                jdbc-driver="com.mysql.jdbc.Driver"
+                jdbc-driver="com.mysql.cj.jdbc.Driver"
                 jdbc-uri="jdbc:mysql://127.0.0.1/ofbiz_odbc?autoReconnect=true&amp;characterEncoding=UTF-8"
                 jdbc-username="ofbiz"
                 jdbc-password="ofbiz"