Please help me solve JDBC/mySQL error

                          try {
                                Class.forName("com.mysql.jdbc.Driver").newInstance();
                                Connection Con = DriverManager.getConnection ("jdbc:mysql://localhost:3306/systemdatabase","root", "");
          catch (Exception ers)
            System.out.println("Error: " + ers);
Throws error below.
I am not sure whats wrong, I extracted "mysql-connector-java-3.1.7-bin.jar" to C:\j2sdk1.4.2_05\jre\lib\ext\
Also setup classpath...
And I am running mysqld-nt.exe (I am using XP)
thanks
Error: com.mysql.jdbc.CommunicationsException: Communications link failure due t
o underlying exception:
** BEGIN NESTED EXCEPTION **
java.net.SocketException
MESSAGE: java.net.ConnectException: Connection refused: connect
STACKTRACE:
java.net.SocketException: java.net.ConnectException: Connection refused: connect
        at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.ja
va:151)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:280)
        at com.mysql.jdbc.Connection.createNewIO(Connection.java:1765)
        at com.mysql.jdbc.Connection.<init>(Connection.java:430)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:268)
        at java.sql.DriverManager.getConnection(DriverManager.java:512)
        at java.sql.DriverManager.getConnection(DriverManager.java:171)
        at AddDetails$1.mousePressed(AddDetails.java:201)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:22
2)
        at java.awt.Component.processMouseEvent(Component.java:5097)
        at java.awt.Component.processEvent(Component.java:4897)
        at java.awt.Container.processEvent(Container.java:1569)
        at java.awt.Component.dispatchEventImpl(Component.java:3615)
        at java.awt.Container.dispatchEventImpl(Container.java:1627)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3195)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
        at java.awt.Container.dispatchEventImpl(Container.java:1613)
        at java.awt.Window.dispatchEventImpl(Window.java:1606)
        at java.awt.Component.dispatchEvent(Component.java:3477)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
        at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
** END NESTED EXCEPTION **
   

"Connection refused: connect"
This means there is no service running on the host and port you are trying to connect to.
Try
telnet localhost 3306
If this fails to connect then nothing will work until either the service is running correctly.

Similar Messages

  • While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    While opening the iTune Store i receive the following error, "The procedure entry point ADAdPolicyEngine_DidEnterSation could not be located in the dynamic link library iAdCore.dll" Please help me to clear this error.

    I faced the same issue. This solved it for me: Troubleshooting issues with iTunes for Windows updates
    Hope this helps.

  • TS3274 Please help me solving it!

    When i updated my itunes 11  my apps options was missing on itunes i was shocked luckily i had a copy of my apps i pastes it on itunes media folder i got my apps back in my itunes now when i sync my ipad to computer its not syncing my new apps its showin there is an internal error! Please help me solve this error.

    When i updated my itunes 11  my apps options was missing on itunes i was shocked luckily i had a copy of my apps i pastes it on itunes media folder i got my apps back in my itunes now when i sync my ipad to computer its not syncing my new apps its showin there is an internal error! Please help me solve this error.

  • TS3258 Hello I have upgraded i tunes from 11.0.0.163 to 11.0.4.4 and i am getting 42404 error please help me to fix that error... Thanks

    Hello I have upgraded i tunes from 11.0.0.163 to 11.0.4.4 and i am getting 42404 error please help me to fix that error... Thanks

    Did you ever solve this issue?

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • My icloud activation lock is ON my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    My icloud activation lock is on my iphone, which requires an activation login to access the homescreen, but when i log in with the apple ID on the phone, it says the apple ID is not meant to unclock this iphone 5 ios 8.0.2. please help me solve this.

    Yes the phone belongs to me. It was purchased from United Kingdom Vodafone to West Africa, i had to factory unlock to use any sim in it. so it belongs to me. I did the activation myself, now after updating my iphone to the latest update, it required a user id and password to activate the phone, but anytime i enter the details, it tells me the user Id is not correct but the password is correct..

  • Calendar and Time showing in arabic but my phone's language is English. I bought my phone from DU in UAE , Dubai. Please help me solve this issue while keeping the Region to United Arab Emirates

    Calendar and Time showing in arabic but my phone's language is English. I bought my phone from DU in UAE , Dubai. Please help me solve this issue while keeping the Region to United Arab Emirates

    Valentine350z wrote:
    while keeping the Region to United Arab Emirates
    Not possible, I think.  Tell Apple how you feel about this at
    http://www.apple.com/feedback/iphone.html

  • HT3702 please help to solve the violation from itunes

    please help to solve the violation from itunes

    Sorry, but the minimal amount of information you have provided does not allow us to understand what problem you are having. You will need to post a more complete description of your issue before anyone can even guess at suggestions.
    Regards.

  • Hello! Why at me in new мозиле, the old kind has remained! I about the top button Firefox! As I do not establish, all turns out in an old kind! Please help to solve a problem! Thankful in advance!

    Hello! Why at me in new мозиле, the old kind has remained! I about the top button Firefox! As I do not establish, all turns out in an old kind! Please help to solve a problem! Thankful in advance!

    Hello! Why at me in new мозиле, the old kind has remained! I about the top button Firefox! As I do not establish, all turns out in an old kind! Please help to solve a problem! Thankful in advance!

  • HT1349 The nice man Joseph Shen helped me with my google problem on my iPhone and worked for 2 days and now not working again please help me solve this problem were I can retrieve my messages on the I phone when I am not at home  on my wi Fi is the only t

    The nice man Joseph Shen helped me with my google problem on my iPhone and worked for 2 days and now not working again please help me solve this problem were I can retrieve my messages on the I phone when I am not at home  on my wi Fi is the only time it works correct. Bill. [email protected]  708 752  3667 

    http://lifehacker.com/5852948/what-to-do-if-youve-forgotten-your-iphones-passcod e

  • Please help me how to fix error 53 iphone 6 ios 8.1

    please help me how to fix error 53 iphone 6 ios 8.1 when update iphone 6

    Hey there fcaride,
    It sounds like you are unable to finish restoring with iTunes due to this error -1 message. Usually that is associated with security software. Use the steps from the following article to help with that:
    Get help with iOS update and restore errors
    Related errors: 1, 3, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
    These errors mean that your device or computer might have a hardware issue that stops the update or restore from completing.
    Check that your security software and settings aren't blocking your device from communicating with the Apple update server.
    Then try to restore your iOS device two more times while connected with a cable, computer, and network you know are good.
    Make sure that your security software and settings are allowing communication between your device and update servers.
    If you still see the error message when you update or restore, contact Apple support.
    If the issue persists, I would next use the last section of the following article titled "If your device turns on but gets stuck during start up"
    If your iPhone, iPad, or iPod touch doesn't respond or doesn't turn on
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • My dvd rom pops out automatically ..please help me solve it..

    my dvd rom pops out automatically ..please help me solve it

    Hello @swarup463,
    Welcome to the HP Forums, I hope you enjoy your experience! To help you get the most out of the HP Forums I would like to direct your attention to the HP Forums Guide First Time Here? Learn How to Post and More.
    I have read your post on how your DVD rom ejects automatically, and I would be happy to help you!
    For further assistance, I will need to know:
    The Product and Model Number of your notebook computer.
    The version of Windows you have installed on your computer.
    If your computer has completed all of its important Windows Updates.
    If you have updated your HP drivers using the HP Support Assistant.
    If this is an on-going, or recent issue.
    Please re-post with the necessary information, this way I will be able to research this further for you. I look forward to your reply!
    Cheers! 
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • I have iphone 3gs and it keeps shut dowm by itself every two minutes idunno if this problem related to the battery life or what? please help me solve this problem

    i have iphone 3gs and it keeps shut dowm by itself every two minutes idunno if this problem related to the battery life or what? please help me solve this problem

    See Here for Device continually restarts...
    http://support.apple.com/kb/HT1808

  • My iphone 5 32 gb has an camera autofocus problem, please help me solve this

    my iphone 5 32 gb has an camera autofocus problem, please help me solve this

    Hi teejayfs,
    Thanks for visiting Apple Support Communities.
    If you've noticed unexpected behavior with your iPhone camera, start with these steps to isolate or resolve the issue:
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    You can find these steps here:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Regards,
    Jeremy

  • Am facing problem while buying app in appstore during payment . Getting message as" your payment is declined"- please help me solve this issue

    am facing problem while buying app in appstore during payment . Getting message as" your payment is declined"- please help me solve this issue

    If your payment method is not accepted, here is the formal Apple guidance on the situation.   iTunes Store: Changing account information

Maybe you are looking for

  • My iPhoto won't open and I can't download a new app.

    My iPhoto won't open (having upgraded to Yosemite in Janurary 2015). When I try to open it it says that my version is not compatible with Yosemite and that I need to upgrade the app from the app store - but cannot find iPhoto on the app store. I also

  • 2.08.0002 Beta Drivers will not install on Audigy 2 Platinum

    I am attempting to install the new beta drivers (SBA2_PCDrvBeta_LB_2_08_0002.exe) to gain OpenAL support and better Battlefield 2 performance but I have not been able to. Upon installing the drivers, the system will freeze. I have left it for over an

  • Need Help with my frist database

    I am developing a Java application locally with a very simple database. Where do I begin when I want to make a database? I know SQL but never done a connection to database. I can do my tables with a database tool program (does Sun have such a program

  • Exception in connection with MS sql-server2000

    i have following code import java.sql.*; import java.*; class Conn2      public static void main(String args[])throws Exception           Driver d=(Driver)Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();           Connecti

  • Print problems with InDesign CS4

    Hi, I have been using InDesign CS4 for the last few years and been printing large format on an HP Deskjet 9560. I always got good color quality on the printouts. Recently, I updated the software on my MacbookPro to Snow Leopard and I was forced to ge