Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Browsing all 884 articles
Browse latest View live
↧

mySQL timezone different from client - Java (1 reply)

I have a 5.1 mySQL server where SELECT @@global.time_zone, @@session.time_zone, @@system_time_zone; SYSTEM SYSTEM PDT A containerized application (in docker) is accessing this database, where the...

View Article


Connecting to database using Eclipse (4 replies)

I have problems with accessing my database from Eclipse. Before it worked as a charm, but since I wanted to use the contents of my production database in my development I get the following error...

View Article


How sharding works with stored procedures? (no replies)

Hi, We are going to use MySQL Fabric with Connector/J. I'm wondering, is there a way to dispatch stored procedure invocation on particular shard, based on sharding key (passed as procedure argument or...

View Article

Result query more than one record? (1 reply)

In my Java application I query, and get back one record. What if a new query gets back more records, like a table? For instance: SELECT `project`,`activity, SEC_TO_TIME(SUM(...

View Article

Failover when read only. (1 reply)

Hi, I see that the current JDBC connection string with multiple hosts only fails when an error with code 08* is thrown on the current host. If say you have a current host, that is online but read only...

View Article


Switching database connection in mysql (2 replies)

Here my problem : I have two mysql databases directory and I want to use one after the other. The only way that I have actualy found, to switch from one database to the other, is to shutdown the mysql...

View Article

Data truncation: Truncated incorrect DOUBLE value (1 reply)

Bit of a head scratcher. In my Java application I get the following error message: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Truncated incorrect DOUBLE value Searching the Internet I find...

View Article

Support for Group Replication with Single Primary (no replies)

I'm looking for support for MySQL Group Replication in single-primary (https://dev.mysql.com/doc/refman/5.7/en/group-replication-single-primary-mode.html) mode in MySQL Connector/J. As far as I...

View Article


The time zone CST has different meanings on MySQL Server and on conntector/j...

I have a MySQL Server installed on Linux. The timezone of the Linux is CST which means China Standard Time. But the CST explain as Central Standard Time in java side. I looked at the source code, the...

View Article


org.apache.tomcat.jdbc.pool.ConnectionPool.init Unable to create initial...

when I use tomcat jdbc to connect mysql,the error happened: tomcat-jdbc 8.5.15 mysql-connector-java 6.0.6 mysql 5.7.18 error is : --> SQLCODE : 0 --> SQLSTATE: 08001 --> Message : Could not...

View Article

Client cert required by Connector/J when server does not verify it? (no replies)

Hello! The MySQL server I'm connecting to via SSL with Connector/J is configured not to verify the certificate presented by the client. In...

View Article

mysql-connector-java-5.1.42-bin.jar won't run (no replies)

Downloaded Platform Independent Connector/J 5.1.42 (Zip), extracted, and the mysql-connector-java-5.1.42-bin.jar executable won't run to install the connector. (Windows 10) Any suggestions...

View Article

Master/Slave Replication with Down Slaves (no replies)

Hello, I am attempting to use the com.mysql.jdbc.ReplicationDriver on a web application and everything works great when my code/system is on the "happy path". My reads go to the replicas, my writes go...

View Article


Java and mysql high concurrency bottlenecks solutions (no replies)

We are developing a vehicle tracking system in which several GPS devices keep sending their GPS locations to the server using Tcp connection. Tcp communicator decodes the GPS location and inserts that...

View Article

[Q] Best practice about timezone conversion. (no replies)

Hello, members. I would like to know the best practice. Could you tell me what parameters I should set in the latest Connector/J(5.1.42)? Parameters * useLegacyDatetimeCode * serverTimeZone *...

View Article


Can someone tell me what's wrong with my sql statement ? (no replies)

I got this error which I have been trying the whole day long but I still can't resolve it. Hope to get some help here. The error is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have...

View Article

jdbc with no default db have one extra null byte cause handshake fail (no...

we are using jdbc to connect a mysql-proxy,found that jdbc is different from mysql protocal when dealing no default db connection here is the mysql protocal,Protocol::HandshakeResponse41 if...

View Article


Slow Concurrent Updates (no replies)

Hi Guys, We have a requirement for a high concurrency table 100+ requests per second. It is a table that contains a bunch of unique key-codes, these are assigned a request_guid as they are requested....

View Article

connectionCollation being igored (no replies)

Hi there, we do have a mySql (5.6.37) db with the following server settings: character-set-server = 'utf8mb4' collation-server = 'utf8mb4_bin' table(s) collation is also set to utf8mb4_bin. Now for...

View Article

Caused by: org.hibernate.exception.JDBCConnectionException: Error calling...

hi expert, I have been having trouble in this hibernate connection to MySQL database but I can't figure out what cause the error. Hope someone can advise me. Tks. Here's my hibernate.cfg.xml :...

View Article
Browsing all 884 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>