Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-14-2004, 12:44 AM   #1
LQ Newbie
Registered: Nov 2004
Posts: 2

Rep: Reputation: 0
java app hanging when connecting to mysql

I am having an extremeley strange problem that I hope somebody can help me with. I have created an application that connects to MYSQL that works without a flaw connecting to my xp machine, but does not work connecting to my slackware 9.0 linux box.

The problem:
The application hangs without throwing an exception on the following line:
“this.theConnection = DriverManager.getConnection(url, prop);”

What could be causing this behavior?
Thank you for your time and help.
Old 11-14-2004, 07:01 AM   #2
Registered: Sep 2004
Location: UK
Distribution: Ubuntu
Posts: 117

Rep: Reputation: 16
I'm not exactly sure if this will help, but you say the program doesnt actually crash? I had a similar problem to this, it turned out that the program was just taking a extremely long time to connect. The odd thing was that it was only from that computer, all others connected in less than a second, all trying to connect to the same local server.

Old 11-14-2004, 09:39 PM   #3
LQ Newbie
Registered: Nov 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the help. I think it is the same problem.
Old 11-15-2004, 10:52 AM   #4
Registered: Jun 2004
Location: MD
Distribution: Fedora Core
Posts: 269

Rep: Reputation: 31
Is it fixed? If not try this commad from the mysql prompt

GRANT ALL PRIVILEGES ON <database name> to


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me in connecting Java and Mysql deepanvenkatesh Programming 4 10-29-2005 01:34 PM
Connecting to MySQL using Java Rodotheos Programming 2 06-17-2005 08:23 AM
Writing an app that uses a mysql database without installing mysql server? QtCoder Programming 4 08-09-2004 03:43 PM
java app flickers ianunderwood Linux - Software 1 04-11-2004 05:19 PM
Mysql is not connecting from servlet.But connecting from java, help pls Harish_f Linux - General 0 05-08-2002 04:21 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration