Multiple Colum Update (1 reply)
Hi i getting trouble executing this Updatequery: "UPDATE " + " SET firstname =?, " + " lastname =?, " + " company =?, " + " department =?, " + " legalform =? " + " WHERE cid = '"+cid+"'"; On my MySQL...
View Articlecom.mysql.jdbc.exceptions.MySQLSyntaxErrorException (2 replies)
Error: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? AND...
View ArticleHELP!: Java Communications Link Error (no replies)
I am trying to get my Java program to connect to a remote computer. However, the ping latency between the two computers is less than 1 ms. I use one for Database and Website and the other one to run...
View ArticleHelp me please.Error Report about Connector/MXJ package (no replies)
Hi, I downloaded " mysql-connector-mxj-gpl-5-0-11" in windows X86. But lib folder was empty, so I could not find " aspectjrt.jar ". I need " aspectjrt.jar " to set CLASSPATH. Can you help me?
View ArticleComms failure part-way through query (no replies)
Hi all. I'm getting some problems with comms failures that periodically happen part-way through some large queries on my Java-based client. They seem to happen between 15 mins - 1 hour after starting...
View ArticleDriverManager.registerDriver not working for me (no replies)
I want to create a java application where i want to connect to a mysql database and supply the driver class/jar at runtime. I tried this: DriverManager.setLogStream(System.out); String strJar =...
View ArticlegetMetaData().getColumns thorws OutOfMemoryError (4 replies)
Hi, I'm trying to use the getColumns method of the JDBC getMetadata() object. I'm using the Connector/J version 5.1.7. The method call throws OutOfMemoryError, because the db has very large schema. Is...
View ArticleTomcat 6 Pooled connections not seeing effects of transactions ? (no replies)
Fairly new to mysql and I am sure this has been solved, but in my little java app, it seems that the effects of an sql update are not immediately 'visible' to other db threads. My tester updated a...
View Articlecom.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link...
Numerous people have reported this exception over recent years. For me, it has occurred when MySQL is on localhost and I am accessing it with Connector-J; the exception is raised sporadically on a...
View Articlelost german characters (no replies)
hello all i have written a java-class to fetch data from a mysql-database. now everithing works fine except that all non ascii-characters are lost and instead the question marks are on their place. so...
View ArticleMedical School Admissions (no replies)
MD admit provides Medical School Admissions consulting services to anyone considering applying to medical school. Medical school applicants often underestimate the competitiveness of Medical School...
View ArticleError at SELECT with Parameter (?) - [1064 - You have an error in your SQL...
Hi all, I'm trying to do a simple SELECT passing a parameter (?) at WHERE clause but I'm getting the exeception: Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:...
View ArticleMySql and Java Swings interface (no replies)
Hi all, I Have made a Swing interface which is reading and writing on the database every 20 seconds. It works fine for some 3-4 days continuously but after that suddenly stops updating and reading the...
View ArticleLooking for comparison between MysqlConnectionPoolDataSource and DBCP (no...
I'm back to java development since my left for some days. DBCP is still widely used in many projects. But like many other modern JDBC driver, mysql provide a Datasource implementation as well. DBCP...
View ArticleSelect query on a table with 13 million of rows (no replies)
Hi guys, I have been trying to perform a select query on a table which has 13 millions of entries however it took around 58 min to complete. The table has 8 columns with 4 Primary keys looks like...
View ArticleIssue loading MySQL tables from delimited text files (no replies)
Hello, We have a JAVA application that we developed to process product returns and have been using that application successfully for years. The application utilizes MySQL as the underlying database....
View Articlecom.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Too...
I have file which uploads data to the remote mysql database, which runs on quartz timer, i get the following error. kindly some one help me out.. Thanks in advance at...
View ArticleTable Isolation and JDBC (no replies)
Hello, Is it possible to permanently set a specific table to be read serializable (i.e. I need it so it can only be read from by one transaction at a time). I've been reading about setting global or...
View ArticleProblem calling function through java program (no replies)
I written a mysql function and it's working fine. In a java applicaion I executed a select query (which calls the mysql function) and got the ResultSet. I printed the resultset and got the values...
View ArticleProblem with loading driver (no replies)
1. import java.sql.Connection; 2. import java.sql.DriverManager; 3. import java.sql.SQLException; 4. 5. public class LoadDriver { 6. public static void main(String[] args) { 7. try { 8. 9....
View Article