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

java.sql.Date error (1 reply)

I just installed the MySQL Connector J (Version 5.1.22). I then created a document using LibreOffice (Version 3.6.4) Base to connect to a MySQL database. My initial queries and reports work well with...

View Article


JDBC URL String and Driver Information of All Databases (no replies)

http://codeoftheday.blogspot.com/2012/12/java-database-connectivity-jdbc-url.html

View Article


new connection implicitly created when autoReconnect was disabled (1 reply)

Hi, I am experiencing some strange behavior related to "autoReconnect" parameter. Here are the steps for a simple test i have run: 1 - get a connection from driver (having autoReconnect=false in the...

View Article

com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException (1 reply)

do { String mid=res.getString(1); String model=res.getString(2); String name=res.getString(3); int price=res.getInt(4); String pcolor=res.getString(5); String imei=res.getString(6); java.sql.Date...

View Article

loadbalance url : statement vs preparedstatement (no replies)

Hi, Is there a difference between using regular statements vs using prepared statements in regards to rebalancing behaviour of connector/j? I execute the following: 1. get connection from driver 2....

View Article


querytimeout doesn't work for load-balanced and fail-over urls (3 replies)

Hi, Setting queryTimeout() seems to have no effect when using loadbalanced url. I am using a query that takes more than 5s to execute with the following code: Connection conn =...

View Article

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link...

Hi, Sorry for my Ebglish. I have a strange problem, getting com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure in a netbeans desktop application that has a connection...

View Article

Can't connect to database. (no replies)

I have an application using a servlet that I cannot get to connect to the database using a datasource. I am able to connect to the database using the following code:...

View Article


learn online progamming (no replies)

hi everyone Every body want to learn programming langauges bcoz this is the time of computer technology. so here i provide the information about many programming langauges. learn programming online...

View Article


Can't retrieve Employee_Name + Total Gross Income (3 replies)

String str = "select e.Employee_Name, sum(i.Subincome) from employee e RIGHT JOIN income i " + "ON e.Employee_ID = i.Employee_ID " + " where e.Employee_ID = " + emp_id + " group by e.Employee_Name";...

View Article

timestamp and daylight saving (1 reply)

I'm running a matlab function (fastinsert) to insert data into MySQL. The results are correct for the whole year except for 1 hour in March, during daylight saving. In fact it seems that I cannot...

View Article

JDK 7 support with mysql-connector-java-5.1.23 (3 replies)

Hello, Does anyone confirm that JDK 7u13 is supported with mysql-connector-java-5.1.23? And also share if anyone face any issue with JDK 7 with MySQL Java 5.1.23 connector? Thanks, -Praveen Soni

View Article

Connector/MXJ not shutting down on Windows shutdown? (no replies)

I know that Connector/MXJ is end-of-life; however, I'm hoping someone on the forums might be able to answer a question for me. We have an applicaton that's using MySQL Community Edition 5.5.9 and...

View Article


Performance problems with executeUpdate (no replies)

Hi All, I'm experiencing performance issues under MySQL 5.6.10 (and also tested under 5.5.24). Running a bunch of DDL statements for bootstrapping the application, I've found that something simple as:...

View Article

LoadBalancingConnectionProxy and /* ping */ select 1 (2 replies)

Hi there, Having read http://dev.mysql.com/doc/refman/5.5/en/connector-j-usagenotes-j2ee-concepts-connection-pooling.html, the document is a little confusing when it comes to describing what occurs...

View Article


Communications link failure after a while (no replies)

hi , after a while (day or two) we get the exception below , after we used to have this error i implemented a pool of connections based on org.apache.commons.pool.BasePoolableObjectFactory , with this...

View Article

JDBC and date translation (no replies)

Hi all, I connect to a MySQL database with a JDBC driver. In a table, I have a DATE type column with some values like '2008-00-00'. With MySQL Query Browser the result is '2008-00-00' but with...

View Article


does not list the table comments as stated in driver documentation (no replies)

Method jdbcConnection.getMetaData().getTables(....) does not list the table comments as stated in driver documentation: * Each table description has the following columns: * * TABLE_CAT String =>...

View Article

mysql, number of TCP connections does not match on server / client machines...

Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 419 Server version: 5.1.67-0ubuntu0.11.10.1 (Ubuntu) jdbc-mysql.jar version: unknown - how do I check this ?...

View Article

Get SHOW WARNINGS stacktrace after calling a LOAD DATA command through...

Hi, Is there a way to retrieve the SHOW WARNINGS stacktrace after calling a LOAD DATA command through Connector/J? If you look at the method below, I'd like to to do something like the commented out...

View Article
Browsing all 884 articles
Browse latest View live


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