Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11th May 2009, 05:57 PM
kate_2008 Offline
Registered User
 
Join Date: May 2009
Posts: 7
Post Jdbc problem

hellow all
i really need help with mysql server with java (JDBC), when i try to connect to mysql, i got run time error

java.sql.SQLException: Cannot connect to MySQL server on localhost:3306. Is there a MySQL server running on the machine/port you are trying to connect to? (java.lang.NumberFormatException)
at com.mysql.jdbc.Connection.connectionInit(Unknown Source)
at com.mysql.jdbc.jdbc2.Connection.connectionInit(Unk nown Source)
at com.mysql.jdbc.Driver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(DriverManager .java:620)
at java.sql.DriverManager.getConnection(DriverManager .java:200)
at Jdbc1.main(Jdbc1.java:13)
i will be very thanks for your helps....

thanks.......
Edit/Delete Message
Reply With Quote
  #2  
Old 11th May 2009, 05:58 PM
mbeattie Offline
Registered User
 
Join Date: May 2009
Posts: 18
Is mysql running? and is it configured to listen on port 3306? It may be set up for some socket connection only /tmp/something usually.
Reply With Quote
Reply

Tags
help me

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Jdbc ibbo Programming & Packaging 2 26th March 2009 02:55 PM
OpenOffice Base DB from JDBC Shakes Programming & Packaging 0 20th June 2007 06:58 PM
Oracle jdbc cdlaforc Programming & Packaging 3 23rd May 2007 04:13 PM
Jdbc problem: no ttjdbc on java.library.path richardcatlin Installation and Live Media 0 5th May 2006 10:40 PM
JDBC connector tariqtariq Using Fedora 1 10th July 2005 12:03 PM


Current GMT-time: 05:56 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat