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

mySQL JDBC connectiion using wallet (3 replies)

we have requirement to login into mysql using wallet like we do in oracle. I searched and found .mylogin.cnf for password less login from shell. do we have same option for JDBC also?

View Article


Do or Die (no replies)

Hi, I am getting the below Error ,when i am connecting to MYSQL. To reproduce the error, next day I open the website on the index page and try to login into website and then I get the error....

View Article


UTC not an accepted time zone (2 replies)

We upgraded our mysql driver to 5.1.35 this morning and, to my surprise, the new version refused to use UTC timezone (received from server) saying this timezone is either unrecognized or maps to...

View Article

Tracking the update or changes in mysql table (no replies)

I need to stream the changes to elasticsearch to keep in sync with my database(mysql). What will be best way to do this ? I have thought for below approaches 1.Using trigger( but my table will have...

View Article

Capture information string output of MySQL - LOAD DATA INFILE while coding in...

MySQL documentation says: When the LOAD DATA INFILE statement finishes, it returns an information string in the following format: Records: 1 Deleted: 0 Skipped: 0 Warnings: 0 Now, I want to get this...

View Article


Getting java.sql.SQLException: could not retrieve transation read-only status...

We are having the MYSQL RDS instance running on AWS with Server version 5.6.21. We are having the JAVA application which uses this RDS MYSQL DB using java connector driver mysql-connector-java:5.1.34...

View Article

Project with Spring MVC CommunicationsException (no replies)

Hello Hi have a problem with my connection to MySQL. After 8 hours of inactivity I get the exception: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last packet successfully received...

View Article

Creating MySQL table in Java with specific charset/collcation. Is it...

I'm trying to create a database in latin1/latin1_general_cs but whatever I try I always get a database created in utf8/default collation. This is my current code: MysqlDataSource mysqlDataSource = new...

View Article


password problem (1 reply)

I installed MySQL 5.1.73 after (foolishly) deleting an earlier installation. The new installation asks me for a password. But I never set a password. Nor do the passwords from the older installation...

View Article


MySQLSyntaxErrorException (?) (2 replies)

Sorry if this is a standard problem. But I'm stumped. I'm learning to program with the MySQL Connector for Java (5.1.36). While learning I stumbled upon a MySQLSyntaxError Exception. And, as beginner,...

View Article

ERROR 1193 (HY000): Unknown system variable (2 replies)

Another one makes me scratch my head. I'm trying to update my database using a prepared statement. I got an java.sql.SQLException: Unknown system variable 'projectnumber'. I tried to execute the SQL...

View Article

Connecting to MySQL Fabric using JDBC in WildFly (no replies)

Hi All , I'm a newer to MySQL Fabric . We planned to use MySQL Fabric to achieve the MySQL High Availability . Our Application server is WildFly/JBoss . But I don't know how to config WildFly/JBoss...

View Article

JDBC error with "communication link failure" (no replies)

Our Java developers use dbroute to connect to mysql server. We always get communication link failure error in tomcate logs. This error is caused by failing to get responses from mysq server in 30s. We...

View Article


Select for update should return on read-only database (1 reply)

I am using mysql-connector-java version 5.1.25. I have a scenario in which my application is expected to run against a read-only MySQL DB. And so tt is also expected that any write against this DB...

View Article

Should I need to commit a read transaction ? (no replies)

Should I need to commit a read transaction ?

View Article


Remotely Access DB from JDBC to Mysql (no replies)

Hello, We have a requirement to access mysql database remotely through JDBC only. I am able to access mysql database from a remote machine through a client tool. But jdbc drivers I am all lost. From...

View Article

I want to make the questions and answers portlet using the Liferay MVC...

In this portlet anyone can anonymously post a programming related question, but the answer can only be given by the logged in user with permission. Any way of doing this by using portlet from Liferay...

View Article


Why the Connector/J statement.setPoolable(false) only works for server-side...

JDBC defines the statement.setPoolable(false) method which only works for server-side cache and not the client. Why is it like this. Shouldn't it be a way to manually control which statements go into...

View Article

How to enable logging in mysql-connector-java-5.1.36 (no replies)

Hi, I am using preparedstatement and execute them as batches from Java windows application. I want to log all the db activities. I used the following syntax while opening the connection DB_URL =...

View Article

mySQL insert help (no replies)

I am sending a float score of Unity for mysql, an example, the score is a float 8.63 but records 8.00 in mysql. What could be going wrong, the script in Java that sends the score from Unity for MySQL?...

View Article
Browsing all 884 articles
Browse latest View live


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