Help needed with JDBC - please help! (newbie)

hi all
i m new to jdbc
i have installed MySQL server on my winxp machine
i used the command:
mysql -p -u root
Enter password: ****now when writing a prog i m getting a prob at this piece of code:
Connection con=DriverManager.getConnection("jdbc:odbc:books","root","root");wot is wrong wid this code?
please help......
thanks in advance

There are about 20 different things that could be wrong a this point; I'm not going to list them all. If you want specific help, you need to post specific information. This is usually done by posting either a stack trace from an exception, or a more complete section of code and a description of the problem and ALL the symptoms. You have all the information on what you've done, we have none of it.
Instead of trying to diagnose whats wrong with your ODBC setup, I'm going to give you some strong advice; don't use ODBC with JDBC if you can avoid it, and with MySQL you can avoid it. It makes things simpler, less can go wrong, and you don't have to configure a DSN on every machine that you install the program on.
To use "pure" JDBC without ODBC for MySQl:
1) download the JDBC driver (you might already have this)
http://dev.mysql.com/downloads/connector/j/3.1.html
2) follow the installation instructions
http://dev.mysql.com/doc/refman/5.0/en/java-connector.html
In particular, make sure your classpath is set correctly
3) Here's an example of loading the driver and establishing a connection
http://dev.mysql.com/doc/refman/5.0/en/cj-connect-with-drivermanager.html
Note the form of the connection URL,
"jdbc:mysql://localhost/test?user=monty&password=greatsqldb"
This is what an URL without ODBC looks like; there is no DSN, which means no DSN has to be configured.
4) The MySQL database has some built-in security, to prevent malicious connections from outside computers. Solutions to that and other common problems are here:
http://dev.mysql.com/doc/refman/5.0/en/cj-faq.html

Similar Messages

  • My WRT54G2 will Not Work HELP NEEDED !! PLease Help

    Hey i Have a WRT54G2 and it has worked Flawlessly for about a Year... One Day i Wake u To No Connection coming From my Linksys ..... on the Wirless Connections Pop up there is a Message saying  " Information Sent over this network might be visable to others" I Have Tried Everything and Anything to Figure Out or Fix the Problem But NOthing i Do Works ... I am Really Out of Options ,,,,, Someone PLeaseeeee HElllllp Meeeee !!!!1 Aaaahhhhhhhhhhhhhh 

    In this case try to change the power socket. Try to do 30/30/30 hard reset. The following procedure will clear out the NVRAM and set Router back to default values:
    ~~ With the unit powered on, press and hold the reset button on back of unit for 30 seconds
    ~~ Without releasing the reset button, unplug the unit and hold reset for another 30 seconds
    ~~ Plug the unit back in STILL holding the reset button a final 30 seconds....
    Then make the physical connectivity. Here are the steps for the physical connectivity for the router:
    The router’s power adapter needs to be plugged to your router and into an available power outlet.
    If using a wired connection, the first Ethernet cable needs to be plugged to the computer’s LAN port into any of the router’s blue numbered Ethernet ports.
    The second Ethernet cable should be plugged to the modem’s Internet port and the other end into the router’s yellow Internet port.
    Ensure that you have no firewall enabled that may prevent the router from being detected.
    Then make the manual settings according to the ISP setup. Here is the link for setting up a Linksys router with Cable Internet service:
    http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=0ff4c94586a345d082828ec2161aaecf_3686.xml&pid=80&r...
    Here is the link for setting up a Linksys router with DSL Internet service: http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=20ee1457387f40178cd5f41d4b585db4_3687.xml&pid=80&r...

  • Help needed with itunes

    help needed with itunes please tryed to move my itunes libary to my external hard drive itunes move ok and runs fin but i have none of my music or apps or anything all my stuff is in the itunes folder on my external hard drive but there is nothing on ituns how do i get it back help,please

    (Make sure the Music (top left) library is selected before beginning this.)
    If you have bad song links in your library, hilite them and hit the delete button. Then locate the folder(s) where your music is located and drag and drop into the large library window in iTunes ( where your tracks show up). This will force the tunes into iTunes. Before you start, check your preferences in iTunes specifically under the"Advanced" tab, general settings. I prefer that the 1st 2 boxes are unchecked. (Keep iTunes Music folder organized & Copy files to iTunes Music folder when adding to library). They are designed to let iTunes manage your library. I prefer to manage it myself. Suit yourself. If there is a way for iTunes to restore broken links other than locating one song at a time I haven't found it yet. (I wish Apple would fix this, as I have used that feature in other apps.) This is the way I do it and I have approx. 25,000 songs and podcasts and videos at present. Hope this helps.

  • HT5622 i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading

    i need help using the icloud it is not making any since to me can some one call me and help me with it please don't try to help me through email i need to talk and listen i don't understand instruction by reading.
    <Phone Number Edited by Host>

    You aren't addressing anyone from Apple here.  This is a user forum.
    You might want to call a neaby Apple store to see if they have a free class you could attend.

  • HELP NEEDED WITH ADDAPTER-DVI TO VGA.

    PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
    ......THIS ENSURES NO SMOKE!!!                                                                                           
    THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
    ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!

    Quote from: BOBHIGH on 17-December-05, 09:21:31
    Get over it mate !
    I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
    And why bother to reply...some people have nothing better to do.
    Yes there chep and easy to come by...Ive already got a new one.
    All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
    NO NEED TO A WANKA !!
    I feel a bann comming up.
    Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
    Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
    You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
    Google = your friend.
    Quote from: BOBHIGH on 17-December-05, 09:21:31
    it was a simple question and required a simple answer
    Simple for who ? you (buying a new one) ? me ? we ?   .really...........
    Quote from: Dynamike on 16-December-05, 04:11:48
    1: There are allot of diffrent types of those adapters.
    If any of the mods have a problem about my reply.. please pm me.

  • Help needed with Vista 64 Ultimate

    "Help needed with Vista 64 UltimateI I need some help in getting XFI Dolby digital to work
    Okay so i went out and I bought a yamaha 630BL reciever, a digital coaxial s/pdif, and a 3.5mm phono plug to fit perfectly to my XFI Extreme Music
    -The audio plays fine and reports as a PCM stream when I play it normally, but I can't get dolby digital or DTS to enable for some reason eventhough I bought the DDL & DTS Connect Pack for $4.72
    When I click dolby digital li've in DDL it jumps back up to off and has this [The operation was unsuccessful. Please try again or reinstall the application].
    Message Edited by Fuzion64 on 03-06-2009 05:33 AMS/PDIF I/O was enabled under speakers in control panel/sound, but S/PDIF Out function was totally disabled
    once I set this to enabled Dolby and DTS went acti've.
    I also have a question on 5. and Vista 64
    -When I game I normally use headphones in game mode or 2. with my headphones, the reason for this is if I set it on 5. I get sounds coming out of all of the wrong channels.
    Now when I watch movies or listen to music I switch to 5. sound in entertainment mode, but to make this work properly I have to open CMSS-3D. I then change it from xpand to stereo and put the slider at even center for 50%. If I use the default xpand mode the audio is way off coming out of all of the wrong channels.
    How do I make 5. render properly on vista

    We ended up getting iTunes cleanly uninstalled and were able to re-install without issue.  All is now mostly well.
    Peace...

  • Help needed with this form in DW

    Hi, i have created this form in dreamweaver but ive got this problem.
    In the fields above the text field, the client needs to fill in some info such as name, email telephone number etc.
    But the problem is when ill get the messages. Only the text from the large text field is there.
    What did i do wrong??
    http://www.hureninparamaribo.nl/contact.html
    Thank you
    Anybody??

    Thank you for your response. So what do i have to do to fix this?
    Date: Sun, 20 Jan 2013 07:57:56 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help needed with this form in DW
        Re: Help needed with this form in DW
        created by Ken Binney in Dreamweaver General - View the full discussion
    You have several duplicate "name" attributes in these rows which also appears in the first row
    Telefoon:
    Huurperiode:
    Aantal personen:
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5008247#5008247
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5008247#5008247
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5008247#5008247. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • HT201295 My isight built in camera is only turning on for few second on my MacBook Pro (13-inch, Late 2011 ) when I use any camera needed app. Please help me.

    My isight built in camera is only turning on for few second on my MacBook Pro (13-inch, Late 2011 with osx Yosemite) when I use any camera needed app. Please help me. Its getting a little annoying.

    If restarting Mac or reinstalling OS X does not correct this symptom, you likely have a hardware problem.  Contact Apple Support or an Apple Authorized Service Provider for service.
    Message was edited by: EZ Jim
    Mac OSX 10.10.1

  • Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help

    Uloading ebook using iProducer rec'd error: ERROR ITMS-9000: "Unable to parse nav file: toc.ncx" at Book. I don't understand and need help fixing it. Please Help if you've the knowledge.
    Many Thanks

    Yep, i just did it again. The entire scroll-bar widget, complete with formatted text, graphics, etc., pasted itself nicely in another book. Two different files, the same widget.
    I use the scroll-bar widgets for most of my texts. (I have audio buttons on the side, and the scripts are within the widget, to the side). My only text is within widgets, and text boxes, naturally. 
    I am following your recommendation: cleaning files, etc. I am remaking the book anew. I need to convince the EPUB bot or whatever that my file looks and works nicely on all my devices. You would expect an error message when previewing the book: 'Hey Amigo, your file is flawed, stop working on it, and get back to the drawing board." Should be able to try again next Monday.

  • I've had cydia put on my device didn't like it so deleted ap and now I cant get back into Icloud it's gone very faded in couler the icon in settings. Facebook Twitter and a few others have done the same. I need iCloud back please help!

    Hi please help me I'm useles with these thing. I've had cydia put on my device didn't like it so deleted ap and now I cant get back into Icloud it's gone very faded in couler the icon in settings. Facebook Twitter and a few others have done the same. I need iCloud back please help!

    I'm sorry we cannot help you.
    You have Jailbroken your device.  Apple does not support Jailbreaking and as such having done so has voided your warranty and forfeited any support from Apple and by extension these forums. We are not allowed to discuss Jailbroken devices in any way by the Terms of Service of the forum.
    You will have to find help elsewhere. Ask the person that installed Cydia to restore the phone.

  • Trying to veiw videos from a website that requires me to download firefox and silverlight.My imac osx 10.5.8 will now download firefox. firfx tells me my mac is not compatible with ffox Please help me ?  Thank you

    trying to veiw videos from a website that requires me to download firefox and silverlight.My imac osx 10.5.8 will now download firefox. firfx tells me my mac is not compatible with ffox Please help me ?  Thank you

    There is a version of Firefox 4 available for PPC Macs:
    TenFourFox 4.0.1 Firefox 4 For PowerPC Browser Released
    Version 4.0.1 of TenFour Fox, FloodGap's port of Firefox 4 for Power PC
    Macs that supports both Mac oS X 10.4 and 10.5. has been released.
    Mozilla.org dropped support for OS 10.5 after Firefox 3.6 and for Power
    PC with the fourth beta of Firefox 4.
    TenFourFox uses almost all the same code as Firefox 4 and has nearly all
    the same features, including faster JavaScript, WebM video, and HTML 5
    and CSS 3 support, as well as new and emerging Web features, but with
    the code needed to keep your Power Mac functional and fast. Out of beta
    and it's ready for action, versiob 4.0.1 is a performance, security and
    stability update incorporating Mozilla's Firefox 4.0.1 plus AltiVec acceler
    -ation for WebM and browser graphics, and G5 JavaScript acceleration.
    For more information, visit:
    http://www.floodgap.com/software/tenfourfox/
    Source: from http://www.applelinks.com - posted April 25, 2011)
    Now for the intersting bit: TenFourFox, like Firefox, does not support most plug-ins. Unless you are prone to headaches (in which case don't) you can read about that here:
    http://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    But there is a workaround!
    Open TenFourFox and type in the address bar: about:config (no spaces) and click return. This gives you a warning that it might harm the application. Ignore that and click on 'I'll be careful, I promise' and you get the config file that you can edit - with great care.
    Look/search (scroll down) for: tenfourfox.plugins.enabled
    Set it to true. (Double click it to toggle it)
    Now close TenFourFox, open it again, and Flash will now work, as it now uses the plug-ins that Safari has stored.
    With SilverLight, Microsoft attempted to create their own version of what a replacement for Flash could be - but not to universal acclaim. You can read more about it here:
    http://silverlight.net/
    So, if you go to any sites that have been designed for this new Silverlight stuff, you can download the plug-in from here (but make certain that you are downloading SilverLight v.1.0 for OS X (10.4.8 upwards) if you are using a PPC Mac, but even this will not work with Safari 4. Version 2 only works with Intel Macs and does work with Safari 4/5. The solution is to download and install the latest version of Flip4Mac, which now includes a Silverlight component:
    http://dynamic.telestream.net/downloads/download-flip4macwmv.htm
    But the latest news is that Microsoft will probably abandon Silverlight in favour of HTML5:
    http://www.appleinsider.com/articles/10/10/29/apples_ios_pushes_microsoft_to_dia l_down_silverlight_for_html5.html  and
    http://www.bbc.co.uk/news/technology-11673384

  • Help needed with header and upload onto business catalyst

    Can someone help with a problem over a header please?
    I have inserted a rectangle with a jpeg image in  background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen, but stops just before the edge on certain pages. I have double checked that I have placed it in the right place in relation to the guides on the page.
    That's one problem.
    The second problem is that I tried to upload onto business catalyst, which got to 60% and refused to go any further, saying it couldn't find the header picture, giving the title and then u4833-3.fr.png. The picture is in the right folder I have double checked. And it isn't a png. Does it have to be ?
    And the third problem is that I got an email following my upload from business catalyst in Swedish. I am living in France.
    Can anyone help ? Thanks.

    Thanks for replying,
    How can I check the preview in other browsers before I publish a provisional site with BC?
    The rectangle width issue happens on certain pages but not others. The Welecom page is fine when the menu is active, also the contact page, but others are slightly too narrow. Changing the menu spacing doesn’t help - I was already on uniform but tried changing to regular and back.
    In design mode the rectangle is set to the edge of the browser, that’s 100%browser width right?
    Re BC I have about 200 images on 24 different pages and it seems to be having difficulty uploading some of them. But it has managed a couple I named with spaces but not others I named with just one name.
    Is there an issue on size of pictures ? If I need to replace is there a quick way to rename and relink or do I have to insert the photos all over again?
    I’m a novice with Muse with an ambitious site !
    Thanks for your help.
    Mary Featherstone
    Envoyé depuis Courrier Windows
    De : Sanjit_Das
    Envoyé : vendredi 14 février 2014 22:15
    À : MFeatherstone
    Re: Help needed with header and upload onto business catalyst
    created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion 
    Hi
    Answering the questions :
    - Have you checked the preview in Muse and also in other browsers ?
    - Does the rectangle width issue happens when menu is active , or in any specific state , Try to change the menu with uniform spacing and then check.
    - In design view the rectangle is set to 100% browser width ?
    With publishing :
    - Please try to rename the image file and then relink
    - If it happens with other images as well , see if all the image names includes strange characters or spaces.
    - Try again to publish
    With e-mail from BC :
    - Under preferences , please check the country selected.
    - If you have previously created partner account in BC and selected country and language then it would follow that, please check that.
    Thanks,
    Sanjit
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6121942#6121942
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6121942#6121942
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6121942#6121942. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Help with using Adobe Muse CC at Adobe Community
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

  • FRUSTRATED! With Update - Please help cant use itunes at all

    I have tried to update my itunes to the latest version it does not work and now i can not even open the old version - let me explain what pops up as I try to do the update.
    After I have saved and open the itunes set up the following things happen
    I click install and a box opens that reads
    - the feature you are trying to use is on a network resource that is unavailabe. Click ok to try again, or enter an alternate path to a folder containing the installation package 'itunes.msi' in the box below.
    I click ok and another window pops up that says
    - The path 'c\documentsandsettings\Becky\Localsettings\applicationdata\apple\applesoftware update\itunes.msi' can not be found. Verify that you have access to this location and try again, or try to find the installation package 'itunes.msi'in a folder from which you can install the product itunes.
    the next thing that happens is I click ok (because this is the only option that it gives me)then it goes back to the first message that it gave me. Then when I try to close the window it tells me
    - the older version of itunes can not be removed contact your technical support group.
    CAN ANY ONE HELP ME WITH THIS PLEASE - I REALLY WOULD LIKE TO UPDATE MY IPOD AND ADD SOME MORE MUSIC TO IT.
    THANKS SO MUCH
    BECKY

    When you get messages about problems with msi files, you need to clean up your installer files with the Microsoft Installer cleanup utility. Here is a method for removal of the old iTunes, clean up and reinstall:
    == uninstall with cleanup ==
    Download a fresh copy of iTunes and the stand alone version of Quicktime (the one without iTunes)
    http://www.apple.com/quicktime/download/win.html
    http://www.apple.com/itunes/download/
    Download and install Microsoft Installer cleanup utility, there are instructions on the page as well as the download. Note that what you download is the installer not the program – you have to run it to install the program. The installer doesn't give any message to confirm the installation.
    http://support.microsoft.com/kb/290301/
    (To run the program – All Programs>>Windows Install)
    Now use the following method to remove iTunes and its components:
    XP
    http://support.apple.com/kb/HT1925
    Vista
    http://support.apple.com/kb/HT1923
    *If you hit a problem with one of the uninstalls don't worry*, carry on with the deleting of files and folders as directed in the method.
    When you get to deleting Quicktime files in the system32 folder as advised in the method, you can delete any file or folder with Quicktime in the name.
    Restart your PC.
    Run the Microsoft Installer Cleanup Utility. (Start > All Programs > Windows Install Clean Up)
    Remove any references you find to the programs you removed - strictly speaking you only need to worry about those programs where the uninstall failed.
    If you don’t see an entry for one of the programs that did not uninstall, look out for blank entries or numeric entries that look like version numbers e.g. 7.x for Quicktime or 1.x for Bonjour.
    restart your PC
    Install the stand alone Quicktime and check that it works.
    If it does, install iTunes.

  • Help needed with Elements 5.0

    Trying to Edit photos.  Click on Edit icon and I get the Message " Attempt to Access invalid address".  Click OK get message "Unable to connect to editor application.
    What is the problem?   I have unenstalled to program and reinstalled, I have tried repairing from CD.  Nothing works.  Please help.

    I have the disc and re-installed a couple of time. No positive result. PSE 09 which I bought thereafter is giving a lot of problems also!!!
    Date: Wed, 8 Jun 2011 10:31:24 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed with Elements 5.0
    Doesn't really help either of us very much but I'm also having the same problem with Elements 5. I downloaded the program so I don't have disks to reinstall. And it seems from the other reply that Adobe has given up with the "old program," which incidentally was working fine until two days ago. Maybe I'll have to think about PSE9!
    >

  • Help needed with BBDM 5.0.1 IP Modem

    Hi I was happily connecting thru the Net via the IP Modem in BBDM ver 5.0.1 all this while. Only this happened yesterday. Accidentally during the connection, my 9500 was disconnected from the USB cable. From that moment on, I cannot access the Net using the IP Modem feature. Tried to reboot the laptop as well as the 9500 but now all I get is the connecting message and then a pop up saying there is a hardware failure in the connecting device (or modem) ie the BB 9500.
    I even uninstalled BBDM 5.0.1 and reinstalled ver 5.0 and also updated back to 5.0.1 - same story. I can still access the Net via the BB browser etc
    Advise please thanks in advance

    I have the disc and re-installed a couple of time. No positive result. PSE 09 which I bought thereafter is giving a lot of problems also!!!
    Date: Wed, 8 Jun 2011 10:31:24 -0600
    From: [email protected]
    To: [email protected]
    Subject: Help needed with Elements 5.0
    Doesn't really help either of us very much but I'm also having the same problem with Elements 5. I downloaded the program so I don't have disks to reinstall. And it seems from the other reply that Adobe has given up with the "old program," which incidentally was working fine until two days ago. Maybe I'll have to think about PSE9!
    >

Maybe you are looking for

  • Is there a way to avoid having a content library on a site server when the Distribution Point role is not installed on that server (disk cost issue)?

    Hello, I don't think it is possible, but my goal is to start a discussion about content libraries and maybe suggest something for a future release or version of Configuration Manager. Actually, based on Configuration Manager Technet documentation, Co

  • Random system freezes with K8N Neo2...

    Hi! I've got the following problem: My Pc freezes randomly, i.e. I'm booting my system, WinXP starts and I'm on my desktop and then it freezes and nothing happens( and I did nothing!). I have to reboot my machine. Then, the pc boots up and everything

  • How to post data to Oracle B2B's httpReceiver using SOAP UI

    Hi All, I have successfully tested an inbound EDI X12 810 transaction by creating document version, type, definition. I have used an inbound file channel in this case to pick the file and the sender trading partner is dentified from the ISA and GS va

  • Empty Record in Export

    DRM Gurus: I am new to DRM so please forgive my naive question. When running an export, we are getting an empty record that just contains the fine "Y" but none of the other fields. Do you know what could cause this?   We did inactivate a record, so w

  • Patch manager

    Can someone help me run the patch manager? I have downloaded and installed the patch manager from the sun website. I have found the help files, which are not very helpful, but where do you run it from? the help file says use the browser, been there b