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

MySQL Paging (no replies)

Hi, What is the best way to implement paging for big data in java? Please tell me how to use it.

View Article


How to check if a variable is numeric in MySQL (1 reply)

Hi, I have a column which is String but suppose to contain numeric Strings. Since it is String their is no constraints to not allow anything else then number. Now I need to get data from this column...

View Article


Client side logging (no replies)

I'm running MySQL 5.7 and JDK 1.7 I am trying to log SQL on the client-side of the JDBC connection with the bound parameters ? replaced with actual values. props = new java.util.Properties();...

View Article

Asynchronous Connector/JDBC? (no replies)

Hello, There is no asynchronous Java-MySQL driver available from Oracle or third parties. This is a serious performance bottleneck; especially within reactive environments such as Play Framework. Do...

View Article

what is java connection and what is mysql connection? (no replies)

i create a simple dbcp java test project and then i get a connection from basicdatasource,Submit SHOW FULL PROCESSLIST; in sqlyog I can see the connection just created. then i closed the java...

View Article


Why is useLocalSessionState false by default (3 replies)

Hi, I realized that I can get rid of the "SELECT @@session.tx_read_only" when doing an INSERT when setting useLocalSessionState to true. Why is that property set to false by default? Thanks, Florian

View Article

How can I connect to remote MySQL database through SSH from java program? (no...

How can I connect to remote MySQL database through SSH from java program? Are there any library that I can download from MySQL for the above issue?

View Article

ConcurrentHashMap.ConnectionPhantomReference in NonRegisteringDriver is...

Dear, I have accessed mysql use DBCP+mysql-connector-java-5.1.34, and jvm young space is enough(10GB), -XX:MaxTenuringThreshold for jvm is setted as 32, young gc is happened every 30min,...

View Article


Java connection to local MySQL (no replies)

I have installed and created local MySQL test databases and tables on my Windows 7 PC. In order to connect to the database in Java, I need the parameters of the DriverManager getConnection API which...

View Article


how to control DriverManager.getConnection timeout period (2 replies)

Hi, I use mysql ndb7.x, I try to write one simple java programe to detect when ndb can't be connected, but I found DriverManager.getConnection will not return but it will timeout after 20 minutes, so...

View Article

I can run a function created in java from a procedure or trigger in mysql (1...

Good day, i wish to know if is possible execute a function that i did in java from a procedure or trigger in mysql, and how I can do, thanks

View Article

Can't connect to 64 Bit MySQL in 64 Bit Java-Program (2 replies)

I installed the 64 Bit version of MySQ 5.5 on a windows7 64 Bit machine. I also use Java 8, 64 Bit Edition. Everything works fine. But I can't connect through a java program to MySQL. There is no...

View Article

Different behaviour of MySQL 5.5 and MySQL 5.7 when connection is closed (no...

Hi, I'm not sure what should be correct category where to put my question so I put it to General. I'm testing MySQL database configured as XA resource in JBoss EAP 6. Running jdbc driver in version...

View Article


JDBC Encoding German (no replies)

Hello everyone, I am using MySQL 5.6.20 with ConnectorJ 5.1.31. Connection String: jdbc:mysql://localhost:3306/[database name] The query select 'FÄ' = 'FA', 'FA' = 'FA'; returns 0 und 1. The query...

View Article

community driver vs commercial driver (1 reply)

Hi, There are two kind of driver to use with mysql. One is community driver. another is commercial driver. Is there any difference of them for performance or something?

View Article


A 'max_allowed_packet' Exception (3 replies)

Hi,everyone: I have run into a tough problem, here is my stituation. I run a MySQL for the persistence of activeMQ and it run give a exception 'the packet for query is bigger than ...'. Obviously, I...

View Article

MySQL/JDBC connectivity issue (1 reply)

I have three RHL (2) and CentOS (1) environments, at disperse locations with MySQL 5.5.42 or higher installed. I am able to make MySQL DB connection using SSH via MySQL workbench and putty both. But...

View Article


Detect datetime precision (no replies)

I am looking for someway to tell the difference between datetime and datetime(3) using the JDBC DatabaseMetaData. I tried the following rs = connection.getMetaData().getColumns(null, null, tableName,...

View Article

Help with a code (no replies)

Hey, I'm creating a code in eclipse kleper. It has to connect to a database in mysql i dont know if anyone can bring me some help with the code for the connection, add, delete, modify, search and...

View Article

more interesting core java interview questions (no replies)

Can somebody explain in detail about this question How do you handle error condition while writing stored procedure or accessing stored procedure from java? I came across this java interview question...

View Article
Browsing all 884 articles
Browse latest View live