Problem with GRANT syntax in MYSQL statement...need help!

Good afternoon all!
I need a little help with some mysql syntax. I'm using version 4.0.17, and I'm just starting to try to learn about connection pooling (you'll probably see future posts from me on this topic as well:)...
I'm following the directions contained on Apache's website (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html) on how to set up a JNDI datasource.....
The directions are simple, Create a new test user, a new database and a single test table. Your MySQL user must have a password assigned. The driver will fail if you try to connect with an empty password.
I then proceed to enter this line into my mysql prompt - mysql> GRANT ALL PRIVILEGES ON *.* TO javauser@localhost IDENTIFIED BY 'javadude' WITH GRANT OPTION;
Here's the error I get : ERROR 1045: Access denied for user: '@localhost' (Using password: NO)
Can someone give me the heads up on what the "correct" syntax is?

tnguyen1973 , I tried your statement again, this time excluding the -p, pressed Enter and then entered the statement I first posted, and it took that too.
So I'm hoping I can now continue with the example provided on the Apache website.
Can you tell me the difference between using the -p in the statement, and where I can learn more about these things?
Thanks.

Similar Messages

  • Problems with my DvdRW TS-L632N - I need help

    Can someone to give me some advice, to solve the problems?
    I had Some problems with my DVDRW, didn't want to burn some dvds - in device manager i uninstalled the device and after that I tried to installed , but the result was a disaster . Vista Home Premium didn't sees the DVDRW drive (TS-L632N/HPMH).
    I removed the batery and i removed the DVD device and i put it in, without any result. It didn't see in My Computer and Device manager.
    I made these operations without success:
    1. Device manager/uninstal the DVD, scan for hardware change and the result it was that i can't find
    my DVD unit. (it disappeared and no longer can see in device manager and my computer - I can't
    install because i can't find)
    2. I change my Dvd unit with a new one, without any result, it wasn't be found it in device manager.
    3. I instaled The software Microsoft Fix It, the result was that my DVD unit couldn't be found.
    4. I updated my Bios, without any result.
    5. I check in Bios to see if i have in Change boot order , boot from DVD, there is.
    Please help me to solve at least one of the two problems that I have.
    Can you give me some advice, to solve the problems?
    I feel crazy.......I wait your reply,thanks a lot .....

    What is the product?

  • Having serious problems withe my ipod touch 1st gen need help!!

    just last week it was working fine then within a span of 2 hrs the wifi just wouldnt connnect any more. no matter what i did in reseting the the ipod or setting it wouldnt work. then it battery life just started to go only watched 20 min of a movie and the batter died. and yesterday i lastened to 8 hrs of music then it died. and now today only was able to listen to 1 hr of music then it died. all were charged over night. need help please!!!

    WiFi problems, especially if you have lost the WiFi symbol from the top left of the screen, can usually be fixed by resetting network settings - Settings > General > Reset > Reset Network Settings.
    For your other problems, I think a complete restore might be in order. I would at least try it and see what happens.

  • Problem with lacie HD and airport extreme need help!!

    Let me first off tell you what my set up is powerbook with the latest 10.4 os, airport extreme software up to date, a Lacie 500gb usb hard disk connected to the airport extreme, i've got an apple TV connected to the extreme via ethernet, I also have a macbook pro using the airport.
    The problem i've got is the powerbook is the main hub between the external hard disk and the apple tv but it's started to not hold a connection to the lacie i keep having to tell the powerbook to connect then ok it with a password and as a result i have to keep re syncing things like movies and photos to the apple tv.
    Is there a way to automatically connect the powerbook to the hard disk with out it needing a password if not can anyone come up with an explanation as to why the disk has started to unmount after being fine for weeks?
    My macbook pro has no problems keeping a connection.
    Thanks in advance

    I just found out something today which might help you Daniel, but that doesn't solve our problem in a "classic" way...
    So I was very obsessed by the fact that Windows Vista could actually access the shared HD with Bonjour and with a lot of testing I found this : let's say my macbook pro was off, if I would access the HD with Vista and then open up the MacBook Pro, then there would be no problem.
    Eventually I found out that the problem really came from the fact that my WD MyBook 1Tb external drive was putting itself on standby after a while (which is a good thing actualy). When I was trying to connect to the drive while it was on standby with Finder, it would try to connect forever... however, it would physically wake up the external drive (I could tell by the sound)... but too late for Finder, and no way to access it other than rebooting the Mac... OR crashing Finder (Apple Menu - Force to quit). Then the Finder restarts automatically and the drive works.
    I really don't like this solution (having to crash finder) but it works.
    PLEASE if someone has a better way, let me know !!!

  • Problem with application !!!Urgent need Help please!!!

    Hello i am trying to make a 2d sprite engine. I have a serious problem. When i start the application sometimes the screen is just gray. and no matter how long i leave it it just stays gray however every now and again if i run it works fine. this is realy troubling me i cant understand it.
    I am try to use a double buffering strategry and also am storing images on accelerated memory if someone could please help me this would be a great help

    ...you will have to post some sample code, i really can't make heads and tails of it with the given information...

  • Problem with adobe reader 9.3, I need help!!

    Hi guys, I'm looking for help in this forum because I can't find it anywhere else!!
    Look how my windows 7 64 bit pc views pdf files in every window in the image above.
    I'd like to have the preview with the first page of documents.
    I hope someone can suggest me how to solve the problem.
    Thanks in advance!!

    I tried but nothing to do.
    The problem is that my pc doesn't display the preview only for pdf files. I can see the preview for all the other files like JPEG, WORD file and so on, but not pdf files.
    So I thought the problem must be in adobe reader, but I can't understand which is the problem.

  • I have 2 problems with Photoshop Elements 12 that I need help with

    The problems:
    1) When I bring photos into the editor to work on them and then save them they are not automatically appearing in Organizer
    2) When I make changes in Organizer (eg adding or deleting photos) the changes do not appear in Adobe Revel. When I make changes within Adobe Revel they are appearing in my Organizer
    I have all the latest versions of Elements 12 and Revel downloaded
    Any suggestions?

    John,
    Looks like you already have 12.1 version installed.
    Have you tried restarting revel agent from Edit>Preferences>Adobe Revel?
    Do you see an orange icon next to Mobile albums header in left panel?
    Regards,
    vaishali

  • Problems with the recharging....need help ASAP.

    i use my computer constantly and recharge it constantly... today i found that when i plugged the cable to recharge it, the light on the plug didnt go on nor would it charge the battery... could it be that the cable burnt up or is it the computer that is malfunctioning??? thanks.
    iBook G4   Mac OS X (10.3.9)  

    Can you swap adapters with a friend and see if his adapter works with your iBook? If not, can you go to an Apple Store and have them try a different adapter with it?
    If you shut down the computer and remove the battery, can you start up with just the adapter? Or will it not start up from the adapter alone?
    Chances are good that it's the adapter since it doesn't light up at all. If it's the computer at fault, the adapter ring usually glows green all the time, indicating that the iBook isn't charging the battery.

  • I have problem with my track pad cursor ..need help pls?

    my mac book pro track pad is not working as it should.. it goes different direction . what shoul i do ?? any way i ca reset the track pad . i tried with track function didnt work ?

    wangyal3y4,
    open the Trackpad pane of System Preferences, and select its Scroll & Zoom tab. If its “Scroll direction: natural” checkbox is checked, uncheck it; if it’s unchecked, check it.

  • Problem with 8900 Browser connecting... need help

    I have a who has a 8900 and is using digicel jamaica for service. 
    She is able to make and receive calls.  She can receive emails but unable to get her blackberry browser to connect.  This service was working fine until this past friday.  Now she did mention someone else's email is on the phone but customer service could not remove that person until they called.  Not sure I understand that part.  We have tried the following:
    1.  Battery pull
    2.  Checked APN settings and tried:
    APN:web.digiceljamaica.com
    Username: blank
    Password: blank
    and..
    APN: web.digiceljamaica.com
    User: wapuser
    Password: wap03jam
    3.  She is not sure if they recently sent any new service books.
    4.  She spoke to her customer service and stated her account is properly provisioned. 
    5.  Her wifi is on but she is not connected to any local network.
    6.  We checked her browser version and she has 4.6.1.250. 
    At this point, I am stuck.  Any insight or ideas that I can try?  She gets unable to connect when she tries to use her blackberry browser. 

    Unfortunately, if you have not enough knowledge about using Flash, and do not want to pay to have this done for you, the folks who did this for you are likely going to be the only ones who can help you resolve it.  They should be able to provide the edited fla and the new swf if they are in any way a credible/reliable business.... which at this point sounds like they are not.

  • Problems with new Ipod 4th Gen - Syncing - Need Help

    Hi My Daughter has an ipod (4th Gen) but it wont do the final sync on itunes.  It just keeps saying "Waiting for changes to be applied"

    See:
    "Waiting for changes to be applied": Apple Support Communities

  • Problems with INSERT  syntax ?

    Dear programmers,
    I am have a problem with INSERT Syntax,
    I have a table with 11 fields out of which one is auto_increment field(id), Now my problem is, Do i need to specifiy autoincrement field in INSERT statement. I dont thinks ?
    My Insert statement is as follows ,
    int result = st.executeUpdate("insert into tablename"
              +"(name, user_group, lage, preis, anmerkung, exp_uri, timestamp, nummer)"
              +"values +Objekt+"','"+Kategoriekey+"','"+Lage+"','"+Preis+"','"+Anmerkung+"','"+Dateiname+"','"+date.getTime()+"','"+ObjektID+"')");
    thanks in advance
    bye

    The answer to your question is maybe. Each database handles autoincrements differently. What database are you using?
    I also noticed that you are doing an insert using the standard Statement. You should look into using PreparedStatements for performance reasons and issues such as single quotes from within a string.
    Matt

  • Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....

    Mountain Lion fails to install saying it cannot create the recovery; I had a similar problem with Lion and the Apple Store that helped me resolve it gave me an installable version of Mountain Lion on a flash drive for my inconvenience....is there some trick I am missing or do I need to make an appointment with a genius...

    I have the MacIntosh volume and the Boot Camp partition only.  I know that when I installed Lion, I had to go through a whole back-up and recovery of Windows and then re-format the drive. 
    The tech at the Apple Store had a previous life as a MSCE and was very helpful.  I believe he even said that I should not have htis problem with Mountain Lion which is why they gave me the flash with it onboard.  I was in the process of starting a new job when I went to Lion, so I have waited to do this next and probably last upgrade to this old MBP since I doubt Apple will support this MBP in Maverick. 
    I do not have another installation, so that is not an option.  I will try to create an external, I have plenty of hard drives around and see if I can get it done that way.  It might take me a week or two to get back to it, but I will comment back upon completion of that effort.  Thanks for your help....Dave Iverson

  • Cannot create new folders on desktop. Cannot drag new items onto desktop. Desktop in Finder opens with Terminal. Not sure if this has anything to do with upgrading to Mavericks but I need help if anyone has ideas. Thank you.

    I can no longer create new folders on my desktop. The option to do that is now light gray on the drop down menu and can't be selected.
    I cannot drag new items onto desktop any longer either.
    The Desktop in Finder opens with Terminal.
    Folders and items on Desktop open and work normally.
    Not sure if this has anything to do with upgrading to Mavericks but I need help if anyone has ideas.
    Thank you.

    Take these steps if the cursor changes from an arrow to a white "prohibited" symbol when you try to move an icon on the Desktop.
    Sometimes the problem may be solved just by logging out or rebooting. Try that first, if you haven't already done it. Otherwise, continue.
    Select the icon of your home folder (a house) in the sidebar of a Finder window and open it. The Desktop folder is one of the subfolders. Select it and open the Info window. In the General section of the window, the Kind will be either Folder  or something else, such as Anything.
    If the Kind is Folder, uncheck the box marked Locked. Close the Info window and test.
    If the Kind is not Folder, make sure the Locked box is not checked and that you have Read & Write privileges in the  Sharing & Permissions section. Then close the Info window and do as follows.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    xattr -d com.apple.FinderInfo Desktop
    Copy the selected text to the Clipboard by pressing the key combination command-C.
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You should get a new line ending in a dollar sign (“$”). Quit Terminal.
    Relaunch the Finder.
    If the problem is now resolved, and if you use iPhoto, continue.
    Quit iPhoto if it's running. Launch it while holding down the option key. It will prompt you to select a library. Choose the one you want to use (not the Desktop folder.)

  • My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

Maybe you are looking for

  • How do I set up my AirPort Time Capsule to connect wirelessly to my VisionNet modem?

        I'm trying to get my AirPort Time Capsule to work with my landline phone DSL company. They supply all customers with a VisionNet modem/router. My problem is getting the Capsule to work wirelessly with the VisionNet modem. I want to put the Capsul

  • No disk inserted!!

    Hi, i am posting this here because nobody gave me an answer to this in the other forums, so i decided to ask here. This is the scenario : I have an application that performs an authentication in a X.500 directory server, to do so, it needs encrypted

  • Selection screen list values initiating problem

    Hi All, I have designed a selection screen with list and initiating that list in initialization event. When i run the report through se38 the list is populated with values. But if i run the report through T-CODE the list is not populated with values.

  • Time Machine Restore Very Large

    I have a mid 2012 Macbook Pro retina that came with a 256GB SSD. I was having issues with the HD and replaced it with a 480GB SSD from OWC. When I restored my TimeMachine backup to the new SSD it says I only have 17GB available. I only had about 100G

  • Indesign CS3 Crashes when loading text styles

    hi all, i need some help. Indesign cs3 keeps crashing when I try to "load all text styles" from one indesign file to another. the file has ten styles (character & paragraph). I'm currently working on windows 7. thankyou for any information you can pr