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

What is the Java URL to connect to mysql server in Ubuntu when installed...

I used the following command to install MySQl server apt-get install mysql-client-5.1 mysql-server-5.1 in Ubuntu Now MySQL Server 5.1 is running and I can connect to it using the client side tool...

View Article


DB not in the server directory connection (no replies)

Hello, Please, i am trying to connect my java application to my data base "sql.sql" which is located at localhost/Applications/XAMPP/xamppfiles/htdocs/data. This is my code:...

View Article


How to get the same ResultSet as result from SQL comand line? (1 reply)

Hello, I would like return the same display that I can get from the MySQL command line (see bellow) in Java. Is it possible? mysql> select * From Flights;...

View Article

Prepared statement '?' literal (1 reply)

Hi, Does anyone know if there is there an easy way to escape a question mark in a JDBC prepared statement so that it appears as it is & is not replaced by a parameter value? I want to use the...

View Article

stored procedure res consisted of more than one row, how do I parse? (5 replies)

Hi! Okay so I have this very basic stored procedure that I would like to return multiple rows. It looks like this. CREATE PROCEDURE fetchData(OUT the_id INT, OUT the_DATA BLOB) BEGIN SELECT id, DATA...

View Article


Connection pooling issue with MySQLNonTransientConnectionException and Java...

I have a Java, JSP and MySQL application running under Apache Tomcat 6.0.26 which I've been testing with JMeter. What I find is that for a simple test having 10 users logging in and displaying a JSP...

View Article

MySql and Oracle's JAVA CAPS (no replies)

I am trying to read a mysql database using Oracle's JAVA CAPS 5.1.3. I downloaded mysql-connector-java-5.1.18.bin.jar file and used it in the JCAPS Driver Jar File field, and I entered...

View Article

help with JDBC (no replies)

The following code is what I find on website, and I have changed the < > to my db information, but it still not work, I guess it is sth wong with jdbc import java.io.*; import java.sql.*; class...

View Article


MetaData precision is different between UTF8 and Latin1 (no replies)

Hi, I have some problems with precision of MetaDatas that is return either by a Latin1 or a UTF8 database. Some code that describe this problem has been published above. Database column has been...

View Article


How to initiate an external connection from within MySQL server (no replies)

Hi there, Is it possible to initiate a connection (e.g. HTTP) from within the MySQL server? That is, I'd like to have a MySQL trigger, where its logic would be to connect to a remote machine (running...

View Article

curdate() problem (no replies)

hello everyone! i have a problem in jdbc.In mysql it work fine but in java i have the follow error: Got an exception! You have an error in your SQL syntax; check the manual that corresponds to your...

View Article

NoClassDefFoundError (no replies)

I am connecting to MySQL JDBC from Java. When I am running under Tomcat, things are fine. When I am executing the same code in a Main class under IDEA, I am getting NoClassDefFoundError when the...

View Article

Can MySQL 5.0 use latest version mysql connect/J? (no replies)

I'm using MySQL 5.0 server , and can I install Mysql J connector 5.1-*.jar to connect to Mysql 5.0 ? Or Mysql J connector 5.1.jar is for MySQL 5.1 server? Thanks Justin

View Article


Can MySQL 5.0 use latest version mysql connect/J? (no replies)

I'm using MySQL 5.0 server , and can I install Mysql J connector 5.1-*.jar to connect to Mysql 5.0 ? Or Mysql connector/J 5.1.jar is for MySQL 5.1 server? Thanks Justin

View Article

Can MySQL 5.0 use latest version mysql connector/J? (1 reply)

I'm using MySQL 5.0 server , and can I install Mysql J connector 5.1-*.jar to connect to Mysql 5.0 ? Or Mysql connector/J 5.1.jar is for MySQL 5.1 server? Thanks Justin

View Article


Java slow querying (no replies)

Same server, same sql in both cases. I have 5.1.17 java connector, doubt that changing to 5.1.18 would make a difference. 1. SET query_cache_type = 0; RESET QUERY CACHE ; 2. run query in heidisql (any...

View Article

DataBaseMetaData getColumns (no replies)

Hi, MySQL Servee i have database which contains tables in chinese characters (unicode) when i try to get the column names using DataBaseMetaData.getcolumns it does not return me column name. To my...

View Article


Master / Slave - All connections routed to one slave (no replies)

Using MyQL version 5.5 and JDBC driver ver 5.1.16 Connection pool maxSet is 50 Master / slave configuration comprises of the following Master - For writes Failover master - When not in master mode, it...

View Article

Performance issue with all requests being routed to single slave (no replies)

Using MyQL version 5.5 and JDBC driver ver 5.1.16 Connection pool maxSet is 50 Master / slave configuration comprises of the following Master - For writes Failover master - When not in master mode, it...

View Article

can't connect to remote database on other machine with java (1 reply)

hi guys, i'm using connector/j to connect to a remote database on an win xp machine but can not connect. ... Class.forName("com.mysql.jdbc.Driver"); link =...

View Article
Browsing all 884 articles
Browse latest View live


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