<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>MySQL Forums - Connector/J, JDBC and Java</title>
        <description>Forum for Connector/J, JDBC and Java</description>
        <link>https://forums.mysql.com/list.php?39</link>
        <lastBuildDate>Sun, 17 May 2026 03:34:07 +0000</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forums.mysql.com/read.php?39,741255,741255#msg-741255</guid>
            <title>socketTimeout uses double the value? (4 replies)</title>
            <link>https://forums.mysql.com/read.php?39,741255,741255#msg-741255</link>
            <description><![CDATA[ Hello,<br />
<br />
I would like to confirm a behaviour we have been observing with the MySQL Java JDBC driver. We run the latest version available, 9.4.0. Whatever value we specify for socketTimeout, the timeout will instead be after twice that time. To validate, we have implemented a piece of code that does a &quot;select sleep(10)&quot; query. If we set socketTimeout=1000, the query times out after 2 seconds. If we set socketTimeout=2000, the query times out after 4 seconds. We have observed this behaviour consistently. The driver documentation makes no mention of that behaviour.<br />
<br />
Thanks in advance]]></description>
            <dc:creator>Etienne Hardy</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 23 Feb 2026 12:45:09 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,741075,741075#msg-741075</guid>
            <title>AbandonedConnectionCleanupThread&#039;s problem (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,741075,741075#msg-741075</link>
            <description><![CDATA[ When I analyzed heap memory using MAT, I found that 75% of the memory usage came from the connectionFinalizerPhantomRefs variable of the AbandonedConnectionCleanupThread. Why is this? The version I am using is<br />
  &lt;groupId&gt;mysql&lt;/groupId&gt;<br />
  &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;<br />
  &lt;version&gt;8.0.32&lt;/version&gt;]]></description>
            <dc:creator>weigang wu</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 10 Feb 2026 20:18:59 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,740245,740245#msg-740245</guid>
            <title>The mysql connector (JAVA) time zone is faulty (2 replies)</title>
            <link>https://forums.mysql.com/read.php?39,740245,740245#msg-740245</link>
            <description><![CDATA[ Env<br />
JVM: UTC<br />
JDBC:serverTimezone=Asia/Shanghai (CST)<br />
Mysql: UTC<br />
<br />
When I use mysql-Connector -java version 8.0.32, I find that when I first query a LocalDateTime data, which is stored in mysql timestamp, the query will do time zone conversion. However, when I use the time zone converted data to update the mysql data directly, I do not do the time zone converted, so the data I update is 8h smaller than the original data<br />
I didn&#039;t have this problem when I used version 8.0.22 or later]]></description>
            <dc:creator>songlin songlin</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 18 Feb 2025 06:02:57 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,740238,740238#msg-740238</guid>
            <title>Streaming query swallowing SQLException (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,740238,740238#msg-740238</link>
            <description><![CDATA[ Intermittent errors from our code are being swallowed someplace during streaming and causing the streaming to hang. I&#039;m fairly certain it&#039;s occurring under `ResultSet.next`. <br />
<br />
Is this a known problem? Is there a known workaround? We&#039;ve tried catching and rethrowing the errors as other errors. They get caught but they still get muted.<br />
<br />
Can someone point me to the streaming implementation of `ResultSet.next`? It&#039;s probably not actually that but whatever implements `this.rowData.next()`. I am curious whether com.mysql.cj.jdbc.result.ResultSetImpl#clearWarnings may be a causal agent.<br />
<br />
The kotlin version of the iteration with annotation<br />
``` kotlin<br />
        database.dirtyExecuteExpression(expression) { statement -&gt;<br />
            logger.debug { &quot;Running query: $statement&quot; }<br />
            if (database.dialect is MySqlDialect) statement.fetchSize = Integer.MIN_VALUE<br />
            statement.queryTimeout = 0 // no timeout<br />
            try {<br />
                statement.executeQuery().use { rs -&gt;<br />
                    logger.debug { &quot;Query: $rs&quot; }<br />
                    while (rs.next()) {<br />
                        try {<br />
                            action(rs)<br />
                        } catch (e: SQLException) {<br />
                            // catches the error but the throw hangs rather than exits the iteration <br />
                            logger.error(e) { &quot;Error during suspendable query $statement on ${statement.connection}&quot; }<br />
                            throw e<br />
                        }<br />
                    }<br />
                }<br />
            } catch (e: SQLException) {<br />
                // catches the eventual socket disconnect error<br />
                logger.error(e) { &quot;Outer error during suspendable query $statement on ${statement.connection}&quot; }<br />
                throw e<br />
            }<br />
        }<br />
```]]></description>
            <dc:creator>Don Mitchell</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 10 Feb 2026 19:31:12 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,740105,740105#msg-740105</guid>
            <title>Inquiry About Patch Fix for CVE-2023-22102 in MySQL Connector Dependency (3 replies)</title>
            <link>https://forums.mysql.com/read.php?39,740105,740105#msg-740105</link>
            <description><![CDATA[ Hi Team,<br />
<br />
I am reaching out to inquire about the status of a patch fix for the vulnerability CVE-2023-22102 in the MySQL Connector dependency. This vulnerability has been flagged in our environment, and I am keen to understand if there is an updated version or a workaround available to mitigate the issue.<br />
<br />
Could you please provide an update or guidance regarding the timeline for the patch release? Alternatively, if there&#039;s any official documentation or release notes addressing this vulnerability, I would greatly appreciate it if you could share the link.<br />
<br />
Looking forward to your response.<br />
<br />
Thank you!<br />
<br />
Best regards,<br />
Tanuj Monga]]></description>
            <dc:creator>Tanuj Monga</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Wed, 22 Jan 2025 12:29:07 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,733240,733240#msg-733240</guid>
            <title>Specifying server name in certificate for TLS connection (4 replies)</title>
            <link>https://forums.mysql.com/read.php?39,733240,733240#msg-733240</link>
            <description><![CDATA[ Sometimes the hostname used to connect to a server differs from the subject name in the TLS certificate presented by this server (for valid reasons). Some JDBC drivers allow for that by providing a connection parameter where the expected name in certificate is specified (oracle.net.ssl_server_cert_dn for Oracle, hostNameInCertificate for MS SQL Server). I can&#039;t find a way to specify it for MySQL Connector/J. Is there any way to provide this server name, so that verification with sslMode=VERIFY_IDENTITY passes?]]></description>
            <dc:creator>Maciek M</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Wed, 19 Feb 2025 08:50:53 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,730577,730577#msg-730577</guid>
            <title>MySQL Connector/J 8.4.0 (5 replies)</title>
            <link>https://forums.mysql.com/read.php?39,730577,730577#msg-730577</link>
            <description><![CDATA[ Hello everyone,<br />
I am using mysql-connector-j 8.3.0 without any problems but when I tried to update the version to 8.4.0 or to 9.x I got a problem when start the application and trying to connect to the database.<br />
<br />
Caused by: java.sql.SQLTransientConnectionException: HikariPool-default - Connection is not available, request timed out after 30004ms.<br />
<br />
There are times when the connection does not cause any problems but it takes a long time to start. Do you know what could be the cause of this? With version 8.3.0 the connection starts very quickly.]]></description>
            <dc:creator>Stack Philips</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 21 Jan 2025 17:13:47 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,729998,729998#msg-729998</guid>
            <title>MySQL Connector/J Observability with OpenTelemetry (no replies)</title>
            <link>https://forums.mysql.com/read.php?39,729998,729998#msg-729998</link>
            <description><![CDATA[ <a href="https://blogs.oracle.com/mysql/post/mysql-connectorj-observability-with-opentelemetry"  rel="nofollow">https://blogs.oracle.com/mysql/post/mysql-connectorj-observability-with-opentelemetry</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 28 Oct 2024 22:19:03 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,726483,726483#msg-726483</guid>
            <title>CVE-2024-7254 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,726483,726483#msg-726483</link>
            <description><![CDATA[ Hi <br />
<br />
since 09-18 we have the CVE-2024-7254 which is part of the protobuf-java lib (a dependency of mysql-connector-j)<br />
<br />
<br />
Is this CVE relevant for mysql-connector-j users?<br />
<br />
<br />
Kind Rergards<br />
Michael]]></description>
            <dc:creator>Michael Bauschert</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 28 Oct 2024 14:36:59 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,726352,726352#msg-726352</guid>
            <title>Connector/J 9 supported databases (2 replies)</title>
            <link>https://forums.mysql.com/read.php?39,726352,726352#msg-726352</link>
            <description><![CDATA[ We are in the middle of migration from MySQL 5 to 8 and at the same time we&#039;re in the middle of Java virtual threads adoption. Connector/J 9 contain improvements for virtual threads and I wanted to ask if it&#039;s safe to upgrade Connector/J and continue using MySQL 5.7 for some of our databases which are not migrated yet?<br />
<br />
I see that MySQL 5.7 support was dropped in 8.3.0 release, right after MySQL 5.7 EOL, so it looks like that MySQL 5.7 is not supported but this might not mean that it will not work.<br />
<br />
So is it supposed to work or you already removed support for MySQL 5.7 from the code somewhere?]]></description>
            <dc:creator>Volodymyr Magamedov</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 23 Sep 2024 10:01:09 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,725214,725214#msg-725214</guid>
            <title>Spring JDBC template batchUpdate: multiple update statements (5 replies)</title>
            <link>https://forums.mysql.com/read.php?39,725214,725214#msg-725214</link>
            <description><![CDATA[ Hey, hope you are doing great.<br />
<br />
I have the following question/doubt: I am using spring jdbctemplate batchUpdate method passing in a prepared statement and a batch of params. What it then does is to grab that update statement, iterate every entry on the batch and create multiple update statemens separated by &quot;;&quot;.<br />
<br />
e.g. <br />
update abc set col1 = ? where id = ?<br />
batch -&gt; [[val1, id1], [val2, id2], [val3, id3], [val4, id4]]<br />
<br />
the following statement is created and executed:<br />
update abc set col1=val1 where id=id1;update abc set col1=val2 where id=id2;update abc set col1=val3 where id=id3;update abc set col1=val4 where id=id4;<br />
<br />
I am facing the following exception:<br />
Caused by: java.sql.SQLException: syntax error at position 6 near &#039;pdate&#039;<br />
	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:130) ~[mysql-connector-j-8.1.0.jar:8.1.0]<br />
<br />
but if I grab the statement and try to run it e.g. on dbeaver it works.<br />
<br />
Can you tell me what am I doing wrong here?<br />
<br />
Thanks in advance.]]></description>
            <dc:creator>Hugo Ribeiro</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Wed, 24 Jul 2024 09:32:19 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,725041,725041#msg-725041</guid>
            <title>Connector/J not found (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,725041,725041#msg-725041</link>
            <description><![CDATA[ Hello,<br />
Where are the download link for the Connector/J for MS Windows?<br />
Because In the download page (https://dev.mysql.com/downloads/connector/j/)... They&#039;re not there.]]></description>
            <dc:creator>Jorge Dalzotto</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 08 Jul 2024 14:59:07 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,724357,724357#msg-724357</guid>
            <title>Client-server compatibility 8.0-8.4 (2 replies)</title>
            <link>https://forums.mysql.com/read.php?39,724357,724357#msg-724357</link>
            <description><![CDATA[ Hi all,<br />
Can we use mysql connector 8.0 with mysql server 8.4(LTS)? <br />
We want to upgrade to the latest LTS version but there are some clients which are still using Connector/J 8.0. <br />
Not sure if they may face any issues.]]></description>
            <dc:creator>Umur Poyraz</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 21 May 2024 06:56:45 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,723993,723993#msg-723993</guid>
            <title>Per field encoding (10 replies)</title>
            <link>https://forums.mysql.com/read.php?39,723993,723993#msg-723993</link>
            <description><![CDATA[ Does the JDBC driver take table level encoding into account?<br />
<br />
We have a decades old database which uses latin1 as its default character set, but individual tables have a deviating charset, utf8. Updating columns via setString works fine, using setCharachterStream does not. It fails on a <br />
<br />
Caused by: java.sql.SQLException: Incorrect string value: &#039;\xF2f een...&#039; for column &#039;message&#039; at row 1<br />
        at com.mysql@8.2.0//com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:130)<br />
        at com.mysql@8.2.0//com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)<br />
        at com.mysql@8.2.0//com.mysql.cj.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:555)<br />
        at com.mysql@8.2.0//com.mysql.cj.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:339)<br />
        at com.mysql@8.2.0//com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1054)<br />
        at com.mysql@8.2.0//com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1003)<br />
        at com.mysql@8.2.0//com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1312)<br />
        at com.mysql@8.2.0//com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:988)<br />
        at <a href="mailto:&#111;&#114;&#103;&#46;&#106;&#98;&#111;&#115;&#115;&#46;&#105;&#114;&#111;&#110;&#106;&#97;&#99;&#97;&#109;&#97;&#114;&#46;&#106;&#100;&#98;&#99;&#97;&#100;&#97;&#112;&#116;&#101;&#114;&#115;&#64;&#49;&#46;&#53;&#46;&#51;">&#111;&#114;&#103;&#46;&#106;&#98;&#111;&#115;&#115;&#46;&#105;&#114;&#111;&#110;&#106;&#97;&#99;&#97;&#109;&#97;&#114;&#46;&#106;&#100;&#98;&#99;&#97;&#100;&#97;&#112;&#116;&#101;&#114;&#115;&#64;&#49;&#46;&#53;&#46;&#51;</a>.Final//org.jboss.jca.adapters.jdbc.WrappedPreparedStatement.executeUpdate(WrappedPreparedStatement.java:537)<br />
        at deployment.ioserver.ear//io.ebeaninternal.server.bind.DataBind.executeUpdate(DataBind.java:102) [ebean-core-14.0.2-javax.jar:14.0.2-javax]<br />
        at deployment.ioserver.ear//io.ebeaninternal.server.persist.dml.InsertHandler.execute(InsertHandler.java:105) [ebean-core-14.0.2-javax.jar:14.0.2-javax]<br />
        at deployment.ioserver.ear//io.ebeaninternal.server.persist.dml.DmlHandler.executeNoBatch(DmlHandler.java:88) [ebean-core-14.0.2-javax.jar:14.0.2-javax]<br />
        at deployment.ioserver.ear//io.ebeaninternal.server.persist.dml.DmlBeanPersister.execute(DmlBeanPersister.java:69) [ebean-core-14.0.2-javax.jar:14.0.2-javax]<br />
        ... 132 more<br />
<br />
According to the JDBC documentation setCharacterStream is responsible for using the correct encoding, so I cannot fault the ORM library for not doing a conversion. <br />
<br />
From what I gather examining the sources of mysql-connector-j, it only looks at the session for encoding information, not at table level. If that is correct, then that would mean the JDBC driver does not support a &#039;feature&#039; of the database that it allows for per-table charset. Or is there a way to get it to take those charsets into account?]]></description>
            <dc:creator>Tom Eugelink</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 14 May 2024 05:56:56 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,723144,723144#msg-723144</guid>
            <title>Unable to create initial connections of pool. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. (3 replies)</title>
            <link>https://forums.mysql.com/read.php?39,723144,723144#msg-723144</link>
            <description><![CDATA[ Hi Team <br />
<br />
I am stuck with below error , Although the connection is successful to localhost but still getting below mentioned error<br />
<br />
SEVERE [main] org.apache.tomcat.jdbc.pool.ConnectionPool.init Unable to create initial connections of pool. com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.<br />
<br />
Any Insight to the issue will be helpful<br />
<br />
Regards]]></description>
            <dc:creator>Suresh Barkur</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 19 Mar 2024 22:55:17 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,710776,710776#msg-710776</guid>
            <title>Aletrnative to ParseURL in Connector/J version (8 replies)</title>
            <link>https://forums.mysql.com/read.php?39,710776,710776#msg-710776</link>
            <description><![CDATA[ Hi,<br />
with the removal of parseURL from com.mysql.jdbc.NonRegisteringDriver is there an alternative we have for this in version 8?]]></description>
            <dc:creator>Mustajib Khan</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Fri, 08 Dec 2023 20:40:23 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,710418,710418#msg-710418</guid>
            <title>Performance degradation after upgrading to MySQL 8 (4 replies)</title>
            <link>https://forums.mysql.com/read.php?39,710418,710418#msg-710418</link>
            <description><![CDATA[ We have upgraded MySQL in our application from version 5.7.43 to version 8.0.35.<br />
We are getting below exception while trying the fetch the records from the database.<br />
<br />
231104 04:04:03 : com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Application was streaming results when the connection failed. Consider raising value of &#039;net_write_timeout&#039; on the server.<br />
231104 04:04:03 :   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br />
231104 04:04:03 :   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)<br />
231104 04:04:03 :   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)<br />
231104 04:04:03 :   at java.lang.reflect.Constructor.newInstance(Constructor.java:423)<br />
<br />
<br />
We tried increasing the net_write_timout value but it didnt help.<br />
Could anyone please provide your suggesstions?]]></description>
            <dc:creator>Reddy Venkata Hanuma Kishore</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 14 Nov 2023 03:55:40 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,710351,710351#msg-710351</guid>
            <title>MySQL Connector/J 2FA and FIDO (WebAuthn) (no replies)</title>
            <link>https://forums.mysql.com/read.php?39,710351,710351#msg-710351</link>
            <description><![CDATA[ MySQL Connector/J 2FA and FIDO (WebAuthn)<br />
- <a href="https://blogs.oracle.com/mysql/post/mysql-connectorj-fido-webauthn"  rel="nofollow">https://blogs.oracle.com/mysql/post/mysql-connectorj-fido-webauthn</a>]]></description>
            <dc:creator>Edwin Desouza</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 30 Oct 2023 22:59:27 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,710008,710008#msg-710008</guid>
            <title>mysql-connector 8.0.32  exception : java.lang.IllegalArgumentException: HOUR_OF_DAY: 2 -&gt; 3 (3 replies)</title>
            <link>https://forums.mysql.com/read.php?39,710008,710008#msg-710008</link>
            <description><![CDATA[ mysql-server version: 8.0.32<br />
mysql-connector version: 8.0.32<br />
<br />
details : <br />
  1. we deploy two database nodes (for example, A and B).<br />
  2. one is CST,and the other is PDT.<br />
  3. data sync from A to B;<br />
<br />
when A has a record with dateTime : 2023-03-12 02:45:00， this field data will be sync to B。<br />
<br />
and query from B has &quot;java.lang.IllegalArgumentException: HOUR_OF_DAY: 2 -&gt; 3&quot; happend.<br />
<br />
#com.mysql.cj.result.SqlTimestampValueFactory#localCreateFromDate<br />
- can delete &quot;c.setLenient(false);&quot;]]></description>
            <dc:creator>TEST TEST</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Sat, 23 Sep 2023 00:10:52 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,709724,709724#msg-709724</guid>
            <title>Unable to retrieve the timestamp field after upgrading to Mysql connector for java 8.0.30 (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,709724,709724#msg-709724</link>
            <description><![CDATA[ Hi All, <br />
<br />
Recently we upgraded our MySQL connector from 5.1.x to 8.0.30 to accommodate the DB server upgrade. After the connector upgrade, application is unable to retrieve the timestamp value from the backend facing IllegalArgumentException from Java Gregorian Calendar API. <br />
<br />
Our application and DB server runs on Singapore (GMT+8) Timezone. This exception is happening only for the timestamps when there was offset change happened in Singapore (https://en.wikipedia.org/wiki/Singapore_Standard_Time#Timeline).<br />
<br />
Example:<br />
<br />
Timestamp in DB - 1982-01-01 00:00:00<br />
<br />
Exception when trying to retrieve the timestamp from application - Caused by: java.lang.IllegalArgumentException: MINUTE: 0 -&gt; 30<br />
    at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2829)<br />
<br />
Tried using serverTimeZone, connectionTimeZone in the connection url but still the issue persists.<br />
<br />
Any help is highly appreciated.<br />
<br />
Thanks]]></description>
            <dc:creator>Saravanan Balarishnan</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Wed, 09 Aug 2023 02:02:51 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,709156,709156#msg-709156</guid>
            <title>Procedure runs fine in DB but throwing errors while running within integration tests (2 replies)</title>
            <link>https://forums.mysql.com/read.php?39,709156,709156#msg-709156</link>
            <description><![CDATA[ I have the below procedure which I wanted to run before each test in my application integration tests to quickly truncate all tables in my schema:<br />
But this does not work in integration test run while it runs fine in a DB<br />
<br />
<br />
DELIMITER //<br />
CREATE PROCEDURE truncate_tables()<br />
BEGIN<br />
  DECLARE tblName CHAR(200);<br />
  DECLARE done INT DEFAULT FALSE;<br />
  DECLARE dbTables CURSOR FOR<br />
    SELECT table_name<br />
    FROM information_schema.tables<br />
    WHERE table_schema = (SELECT DATABASE());<br />
  DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE;<br />
<br />
  OPEN dbTables;<br />
  SET FOREIGN_KEY_CHECKS = 0;<br />
<br />
  read_loop: LOOP<br />
    FETCH dbTables INTO tblName;<br />
    IF done THEN<br />
      LEAVE read_loop;<br />
    END IF;<br />
    SET @s = CONCAT(&#039;TRUNCATE TABLE &#039;, tblName);<br />
    PREPARE stmt FROM @s;<br />
    EXECUTE stmt;<br />
    DEALLOCATE PREPARE stmt;<br />
  END LOOP read_loop;<br />
<br />
  CLOSE dbTables;<br />
  SET FOREIGN_KEY_CHECKS = 1;<br />
END<br />
//<br />
<br />
CALL truncate_tables();<br />
DROP PROCEDURE IF EXISTS truncate_tables;]]></description>
            <dc:creator>Ishan Jain</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 05 Jun 2023 11:37:12 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,708747,708747#msg-708747</guid>
            <title>Longtext Column Values getting hex encoded by jdbc driver (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,708747,708747#msg-708747</link>
            <description><![CDATA[ Hello,<br />
<br />
I was developing a simple Java application to save some data to a mysql database  using the latest version of the jdbc connector mysql-connector-j-8.0.32 , and jdk 17.<br />
<br />
I have enabled query logging on the database as follows:<br />
<br />
SET global general_log_file=&#039;/tmp/mysql.log&#039;; <br />
SET global log_output = &#039;file&#039;;<br />
SET global general_log = on;<br />
<br />
While my java application (JDK17) was running and inserting data to the relevant table, I noticed that the jdbc driver is hex encoding all values for columns of type longtext.<br />
<br />
I could see this via the inserts in the query log, which I was tailing as the program was running.<br />
<br />
As I was using many frameworks (hibernate / spring) I wrote a simple main line program just with the jdbc driver jar as a dependency to see if it was any of the other <br />
frameworks causing the problem.<br />
<br />
However, I still see this behaviour of the longtext values getting hex encoded by the jdbc driver, with just the jdbc dependency<br />
<br />
I have a simple main line program which is using the mysql jdbc driver on its own and a simple table called book.<br />
create table book<br />
(<br />
  id bigint auto_increment primary key,<br />
  author varchar(255) null,<br />
  extract_a longtext null,<br />
  extract_b longtext null,<br />
  extract_c longtext null,<br />
  num_pages int not null,<br />
  title varchar(200) null<br />
);<br />
<br />
<br />
Using a standard prepared statement and normal jdbc code I insert a simple row into the database. The values I send down via java code are:<br />
<br />
&#039;Stephen King&#039;,&#039;Extract A.&#039;,&#039;Extract B.&#039;,&#039;Extract C.&#039;,200,&#039;The Shining&#039; <br />
<br />
The query log shows me the following:<br />
<br />
<br />
Query	INSERT INTO book (author, extract_a, extract_b, extract_c, num_pages,title) <br />
VALUES (&#039;Stephen King&#039;, x&#039;4578747261637420412e&#039;, x&#039;4578747261637420422e&#039;, x&#039;4578747261637420432e&#039;, 200, &#039;The Shining&#039;)<br />
<br />
It can be clearly seen that it is sending down the values as hex encoded strings x followed by 4578747261637420412e, which is the value &#039;Extract A&#039; as a hex encoded string. The same goes for the other longtext columns,<br />
<br />
It&#039;s worth noting that this appears only to have been introduced from version 8.0.29 of the jdbc driver. Versions before this were not hex-encoding values of longtext.<br />
<br />
<br />
My question is:<br />
<br />
Is this a deliberate change (i.e) That all longtext columns are now hex encoded by the jdbc driver? and is there no way of turning this off ? <br />
It&#039;s just that with hex encoding the amount of data sent down to the server will be in most cases twice as much.<br />
<br />
The values I have chosen in my example are quite small just to show my point, but my real-world values will be quite large, and I&#039;d like to understand if this overhead of hex encoding the data will always be there.<br />
<br />
I had a look to see if this was called out anywhere in the release notes , but was unable to find any such information.<br />
<br />
Thanks for taking the time to read this far !<br />
<br />
-Zac.<br />
<br />
My Version of MySQL Server is<br />
Server version: 8.0.32 MySQL Community Server - GPL Running on Mac OS<br />
<br />
MySQL [(none)]&gt; show variables like &#039;%char%&#039;;<br />
+--------------------------+-------------<br />
| Variable_name            | Value                                                                            |<br />
+--------------------------+-------------<br />
| character_set_client     | utf8mb3                                                                          |<br />
| character_set_connection | utf8mb3                                                                          |<br />
| character_set_database   | utf8mb4                                                                          |<br />
| character_set_filesystem | binary                                                                           |<br />
| character_set_results    | utf8mb3                                                                          |<br />
| character_set_server     | utf8mb4                                                                          |<br />
| character_set_system     | utf8mb3                                                                          <br />
<br />
The my.cnf has nothing out of the ordinary in it , I&#039;m just setting the basedir, datadir and tmp dir values.]]></description>
            <dc:creator>Zac Burke</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 18 Apr 2023 11:22:37 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,708718,708718#msg-708718</guid>
            <title>cannot be cast to class com.mysql.cj.jdbc.ClientPreparedStatement (6 replies)</title>
            <link>https://forums.mysql.com/read.php?39,708718,708718#msg-708718</link>
            <description><![CDATA[ Hi<br />
We are developing a multi-threaded batch application on Spring Boot 2.7.8 + Aurora MySQL 2.11.1 (primary-db/replica-db).<br />
I am having trouble with ClassCastException when updating/inserting data into a table.<br />
If I update only one item, ClassCastException is not raised.<br />
Only when updating a large number of n updates, the ClassCastException is always thrown.<br />
Also, when I connect with MariaDB Connector/J 2.5.4 instead of MySQL Connector/J 8.0.32, no ClassCastException occurs even for mass updates.<br />
I would say that using MariaDB Connector/J would solve the problem, but..,<br />
<br />
# HikariCP<br />
## MySQL Connector/J<br />
  - name: &quot;default&quot;<br />
    dataSource:<br />
      driverClassName: &quot;com.mysql.cj.jdbc.Driver&quot;<br />
      jdbcUrl: &quot;jdbc:mysql:replication://\<br />
        primary-db:3306\<br />
        ,replica-db:3306\<br />
        ?rewriteBatchedStatements=true&amp;sessionVariables=character_set_connection=utf8mb4,collation_connection=utf8mb4_general_ci&amp;socketTimeout=300000&quot;<br />
      username: &quot;root&quot;<br />
      password: &quot;&quot;<br />
      autoCommit: true<br />
      readOnly: false<br />
      connectionTimeout: 300000<br />
      idleTimeout: 600000<br />
      minimumIdle: 2<br />
      maximumPoolSize: 10<br />
      connectionTestQuery: &quot;SELECT 1&quot;<br />
<br />
## MariaDB Connector/J<br />
hikari:<br />
  - name: &quot;default&quot;<br />
    dataSource: <br />
      driverClassName: &quot;org.mariadb.jdbc.Driver&quot;<br />
      jdbcUrl: &quot;jdbc:mysql:aurora://\<br />
        primary-db:3306\<br />
        ,replica-db:3306\<br />
        ?rewriteBatchedStatements=true&amp;sessionVariables=character_set_connection=utf8mb4,collation_connection=utf8mb4_general_ci&amp;socketTimeout=300000&quot;<br />
      username: &quot;root&quot;<br />
      password: &quot;&quot;<br />
      autoCommit: true<br />
      readOnly: false<br />
      connectionTimeout: 300000<br />
      idleTimeout: 600000<br />
      minimumIdle: 2<br />
      maximumPoolSize: 10<br />
      connectionTestQuery: &quot;SELECT 1&quot;<br />
<br />
# ClassCastException<br />
2023-xx-xx xx:yy:zz [ForkJoinPool-4-worker-23] ERROR o.h.e.j.b.i.BatchingBatch -&gt; HHH000315: Exception executing batch [java.lang.ClassCastException: class com.sun.proxy.$Proxy186 cannot be cast to class com.mysql.cj.jdbc.ClientPreparedStatement (com.sun.proxy.$Proxy186 and com.mysql.cj.jdbc.ClientPreparedStatement are in unnamed module of loader org.springframework.boot.loader.LaunchedURLClassLoader @7823a2f9)], SQL: update test.table1 set updated_at=?, account_id=?, hoge_formats=?, hoge_type=?, body=?, action_type=?, cr_type=?, story_id=?, hash=?, name=?, story_spec=?, object_type=?, status=?, title=?, video_id=? where id=?<br />
<br />
# DDL<br />
CREATE TABLE `test`.`table1` (<br />
  `id` bigint(20) NOT NULL,<br />
  `account_id` varchar(128) NOT NULL,<br />
  `hash` varchar(128) DEFAULT NULL,<br />
  `video_id` varchar(128) DEFAULT NULL,<br />
  `action_type` varchar(128) DEFAULT NULL,<br />
  `title` varchar(512) DEFAULT NULL,<br />
  `body` mediumtext,<br />
  `name` varchar(256) DEFAULT NULL,<br />
  `story_id` varchar(192) DEFAULT NULL,<br />
  `object_type` varchar(32) DEFAULT NULL,<br />
  `cr_type` varchar(32) NOT NULL,<br />
  `status` varchar(64) NOT NULL,<br />
  `story_spec` json DEFAULT NULL,<br />
  `hoge_type` varchar(128) DEFAULT NULL,<br />
  `hoge_formats` varchar(255) DEFAULT NULL,<br />
  `created_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,<br />
  `updated_at` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,<br />
  PRIMARY KEY (`id`),<br />
  KEY `idx_accid` (`account_id`)<br />
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;<br />
<br />
# Entity<br />
@EqualsAndHashCode(callSuper = false)<br />
@Builder<br />
@NoArgsConstructor<br />
@AllArgsConstructor(staticName = &quot;of&quot;)<br />
@Data<br />
@Entity<br />
@Table(catalog = &quot;test&quot;, name = &quot;table1&quot;)<br />
public class Table1 extends BaseEntity {<br />
    private static final long serialVersionUID = 1L;<br />
    @Id<br />
    private BigInteger id;<br />
    private String accountId;<br />
    private String hash;<br />
    private String videoId;<br />
    @Enumerated(EnumType.STRING)<br />
    private ActionType actionType;<br />
    private String title;<br />
    private String body;<br />
    private String name;<br />
    private String storyId;<br />
    @Enumerated(EnumType.STRING)<br />
    private ObjectType objectType;<br />
    @Convert(converter = CrTypeToStringConverter.class)<br />
    private CrType crType;<br />
    @Enumerated(EnumType.STRING)<br />
    private Status status;<br />
    @Convert(converter = StorySpecToStringConverter.class)<br />
    private StorySpec storySpec;<br />
    @Enumerated(EnumType.STRING)<br />
    private HogeType hogeType;<br />
    @Convert(converter = StringsToStringConverter.class)<br />
    private List&lt;String&gt; hogeFormats;<br />
}<br />
<br />
<br />
Please advise if you have any suggestions.]]></description>
            <dc:creator>Tomonori Iida</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 18 Apr 2023 11:01:29 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,707359,707359#msg-707359</guid>
            <title>MySQL Connector/J 5.1: NPE when executing SQL with QueryTimeout&gt;0 on fabric connection (3 replies)</title>
            <link>https://forums.mysql.com/read.php?39,707359,707359#msg-707359</link>
            <description><![CDATA[ When executing sql with QueryTimeout settings, getProperties() in class FabricMySQLConnectionProxy gets NULL when constructing CancelTask resulting in NPE. <br />
And sql with QueryTimeout settings is a common connection availability detection method in connection pool (e.g. tomcat built-in connection pool, druid connection pool). So this may cause the connection availability detection to fail, resulting in unpredictable behavior such as connection pools abandoning available connections.]]></description>
            <dc:creator>Chengdong He</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 24 Jul 2023 10:13:46 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,707320,707320#msg-707320</guid>
            <title>Bug regarding rewritableAsMultiValues introduced in 8.0.29 (8 replies)</title>
            <link>https://forums.mysql.com/read.php?39,707320,707320#msg-707320</link>
            <description><![CDATA[ After bumping to 8.0.29 and later versions we noticed that batch inserts made by prepared statements took much longer time to execute. After a bit of investigation we found that this only happens on some of our inserts. Namely inserts where we have column names that have the word &quot;value&quot; in them and where the query takes placeholders &quot;?&quot;.<br />
<br />
We could find no way to work around this so please provide a fix since we can&#039;t go above 8.0.28 until this is resolved.<br />
<br />
Including is a test verifying the bug:<br />
<br />
import static org.junit.jupiter.api.Assertions.assertTrue;<br />
<br />
import com.mysql.cj.jdbc.ClientPreparedStatement;<br />
import com.mysql.cj.jdbc.MysqlDataSource;<br />
import java.sql.Connection;<br />
import java.sql.PreparedStatement;<br />
import java.sql.SQLException;<br />
import org.junit.jupiter.api.Test;<br />
<br />
class TransferDatabaseTest {<br />
  @Test<br />
  void rewritableAsMultiValuesBug() throws SQLException {<br />
    MysqlDataSource dataSource = new MysqlDataSource();<br />
    String url = &quot;YOUR CONNECTION STRING GOES HERE :)&quot;;<br />
    dataSource.setURL(url);<br />
    dataSource.setRewriteBatchedStatements(true);<br />
    Connection connection = dataSource.getConnection();<br />
<br />
    //WORKING QUERY<br />
    PreparedStatement preparedStatement = connection.prepareStatement(<br />
        &quot;INSERT INTO test (a, b) VALUES (?, ?)&quot;<br />
    );<br />
    ClientPreparedStatement clientPreparedStatement = (ClientPreparedStatement) preparedStatement;<br />
    boolean isRewritable = clientPreparedStatement.getQueryInfo()<br />
        .isRewritableWithMultiValuesClause();<br />
    assertTrue(isRewritable);<br />
    connection.close();<br />
<br />
    //FAILING QUERY<br />
    connection = dataSource.getConnection();<br />
    PreparedStatement preparedStatementBug = connection.prepareStatement(<br />
        &quot;INSERT INTO test (a_value, bvalue) VALUES (?, ?)&quot;<br />
    );<br />
    ClientPreparedStatement clientPreparedStatementBug = (ClientPreparedStatement) preparedStatementBug;<br />
    boolean isRewritableBug = clientPreparedStatementBug.getQueryInfo()<br />
        .isRewritableWithMultiValuesClause();<br />
    assertTrue(isRewritableBug);<br />
<br />
  }<br />
<br />
}]]></description>
            <dc:creator>Gustaf Sörensen</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Tue, 31 Jan 2023 17:56:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,707175,707175#msg-707175</guid>
            <title>why mysql jdbc driver of com.mysql.cj.Messages always reference String not release memory (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,707175,707175#msg-707175</link>
            <description><![CDATA[ In our project, have call mysql driver<br />
But I don&#039;t know why have a String object, Not release memory<br />
an when have a SQL query, the String Object will be have again, and at the last will be out of memory.<br />
<br />
the String is like this, and have so many the same String in dump heap profile.<br />
<br />
value of java.lang.String [&quot;By default, network connections are SSL encrypted; this property permits secure connections to be turned off, or a different levels of security to be chosen. The following values are allowed: &quot;DISABLED&quot; - Establish unencrypted connections; &quot;PREFERRED&quot; - (default) Establish encrypted connections if the server enabled them, otherwise fall back to unencrypted connections; &quot;REQUIRED&quot; - Establish secure connections if the server enabled them, fail otherwise; &quot;VERIFY_CA&quot; - Like &quot;REQUIRED&quot; but additionally verify the server TLS certificate against the configured Certificate Authority (CA) certificates; &quot;VERIFY_IDENTITY&quot; - Like &quot;VERIFY_CA&quot;, but additionally verify that the server certificate matches the host to which the connection is attempted.[CR] This property replaced the deprecated legacy properties &quot;useSSL&quot;, &quot;requireSSL&quot;, and &quot;verifyServerCertificate&quot;, which are still accepted but translated into a value for &quot;sslMode&quot; if &quot;sslMode&quot; is not explicitly set: &quot;useSSL=false&quot; is translated to &quot;sslMode=DISABLED&quot;; &#039;{&#039;&quot;useSSL=true&quot;, &quot;requireSSL=false&quot;, &quot;verifyServerCertificate=false&quot;&#039;}&#039; is translated to &quot;sslMode=PREFERRED&quot;; &#039;{&#039;&quot;useSSL=true&quot;, &quot;requireSSL=true&quot;, &quot;verifyServerCertificate=false&quot;&#039;}&#039; is translated to &quot;sslMode=REQUIRED&quot;; &#039;{&#039;&quot;useSSL=true&quot; AND &quot;verifyServerCertificate=true&quot;&#039;}&#039; is translated to &quot;sslMode=VERIFY_CA&quot;. There is no equivalent legacy settings for &quot;sslMode=VERIFY_IDENTITY&quot;. Note that, for ALL server versions, the default setting of &quot;sslMode&quot; is &quot;PREFERRED&quot;, and it is equivalent to the legacy settings of &quot;useSSL=true&quot;, &quot;requireSSL=false&quot;, and &quot;verifyServerCertificate=false&quot;, which are different from their default settings for Connector/J 8.0.12 and earlier in some situations. Applications that continue to use the legacy properties and rely on their old default settings should be reviewed.[CR] The legacy properties are ignored if &quot;sslMode&quot; is set explicitly. If none of &quot;sslMode&quot; or &quot;useSSL&quot; is set explicitly, the default setting of &quot;sslMode=PREFERRED&quot; applies. &quot;]]]></description>
            <dc:creator>star zhang</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Mon, 09 Jan 2023 12:09:24 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,707056,707056#msg-707056</guid>
            <title>Help I don&#039;t know why my Timestamp statement in JAVA for certain fields is only giving me null on the Server (2 replies)</title>
            <link>https://forums.mysql.com/read.php?39,707056,707056#msg-707056</link>
            <description><![CDATA[ Help I need a solution idk why but when making the backend for a project when assigning a Timestamp variable to creation date and modification date if I run a JSON using Postman it just gives me Null like I&#039;ve tried everything but can&#039;t figure it out]]></description>
            <dc:creator>Juan Pablo Mendoza Ayala</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Wed, 21 Dec 2022 20:06:01 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,707052,707052#msg-707052</guid>
            <title>asSql() method is removed from ClientPreparedStatement (2 replies)</title>
            <link>https://forums.mysql.com/read.php?39,707052,707052#msg-707052</link>
            <description><![CDATA[ In the mysql-connector-java library, ClientPreparedStatement had a public method called asSql(). The function was there in the 8.0.28 jar (Jan 17, 2022) but removed in 8.0.29 (Apr 25, 2022). I recognize that this is not part of the published JDBC interface, so I cannot legitimately call it a “bug”, but it was a public method and was not deprecated, and it was a very useful function for me. I used it in a QueryInterceptor which allowed me to give a meaningful name to AWS X-ray subsegments. I tried using toString() which I see invokes asSql(), but it prepends the class name which I then have to strip off.<br />
<br />
The method was removed on Jan 17, 2022 by soklakov in commit 4c98c11eb93dd56c01b9f5945f0e16137c585a39.<br />
<br />
Is there some recommended way for me to get the query from  the ClientPreparedStatement, or its underlying this.query object since that has the asSql() function?]]></description>
            <dc:creator>Ken Van Camp</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Sat, 24 Dec 2022 16:17:05 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,707012,707012#msg-707012</guid>
            <title>JDBC connection error (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,707012,707012#msg-707012</link>
            <description><![CDATA[ Hello everyone, <br />
<br />
I state that I am a neophyte; I have a problem when I try to connect with jdbc both of the tomcat docker container and of a local host to the postgresql container I get this error:<br />
<br />
&quot;&quot; org.postgresql.util.PSQLException: The connection attempt failed.<br />
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:315) ~[postgresql-42.2.23.jar:42.2.23] &quot;&quot; etc.... etc....<br />
<br />
The postgres accepts all incoming connections I&#039;ve already checked<br />
<br />
Who can help me?]]></description>
            <dc:creator>Erica Maselli</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Fri, 16 Dec 2022 22:10:20 +0000</pubDate>
        </item>
        <item>
            <guid>https://forums.mysql.com/read.php?39,706921,706921#msg-706921</guid>
            <title>Using Azure JDBC authentication plugin with MysqlConnectionPoolDataSource throw exception. (1 reply)</title>
            <link>https://forums.mysql.com/read.php?39,706921,706921#msg-706921</link>
            <description><![CDATA[ Hi all:<br />
I am using mysql-connector-java(mysql-connector-j) and extended AuthenticationPlugin in com.azure:azure-identity-providers-jdbc-mysql:1.0.0-beta.1 to connect Azure hosted MySQL server.<br />
In this way, instead of authenticating with username/password, I can use the AuthenticationPlugin to perform authentication with username/accessToken.<br />
<br />
But the accessToken is very long(about 1767 characters), and when I was using MysqlConnectionPoolDataSource, I encounted an issue: <a href="https://github.com/Azure/azure-sdk-for-java/issues/31599"  rel="nofollow">https://github.com/Azure/azure-sdk-for-java/issues/31599</a>.<br />
<br />
<br />
Question:<br />
I have a workaround to fix this as the doc says, but still I have a question: why there is a 256 limitation here:<a href="https://github.com/mysql/mysql-connector-j/blob/27603148f10a5f47467bec7ad26a5ca28da63c72/src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java#L679-L685"  rel="nofollow">https://github.com/mysql/mysql-connector-j/blob/27603148f10a5f47467bec7ad26a5ca28da63c72/src/main/protocol-impl/java/com/mysql/cj/protocol/a/NativeAuthenticationProvider.java#L679-L685</a>.<br />
<br />
<br />
I would appreciate it if any one could help me with this question.<br />
<br />
Thanks.]]></description>
            <dc:creator>guo zhihao</dc:creator>
            <category>Connector/J, JDBC and Java</category>
            <pubDate>Thu, 05 Jan 2023 11:27:48 +0000</pubDate>
        </item>
    </channel>
</rss>
