Support LQ: Use code LQ3 and save $3 on Domain Registration
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-13-2004, 11:44 PM   #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, 06: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, 08: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, 09: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 12:34 PM
Connecting to MySQL using Java Rodotheos Programming 2 06-17-2005 07:23 AM
Writing an app that uses a mysql database without installing mysql server? QtCoder Programming 4 08-09-2004 02:43 PM
java app flickers ianunderwood Linux - Software 1 04-11-2004 04:19 PM
Mysql is not connecting from servlet.But connecting from java, help pls Harish_f Linux - General 0 05-08-2002 03:21 AM

All times are GMT -5. The time now is 05:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration