Setup mySQL and access the same from jsp

Hi,
I have installed the MySQL in local desktop in d: drive. As per the documentation, have created my.cnf file to point sql directory in d drive.
Now I dont know how to proceed further. I need to see if MySQL installation is fine, create table and access the data in jsp page. Please advice.
Thanks in advance.

For MySQL help try a MySQL forum.
For connecting to the database, use JDBC. You can get the MySQL JDBC driver from www.mysql.com.
From there just follow standard java database connection setup.
http://java.sun.com/docs/books/tutorial/jdbc/index.html

Similar Messages

  • Creation of Database link and access the same plus Snapshot creation

    i want talk between two oracle server. i decided to go for snapshot creation with periodical refresh. For which i am having two oracle server's with different ip address located inside our office setup.
    I have created a database link between two servers.
    first server name global
    userid scott
    password tiger
    second server name asil
    userid scott
    password tiger
    both the user have been given dba rights.
    in both the server the services and listners are all started. i gave the following command to create database link.
    from asil server
    create public database link global connect by scott identified by tiger using 'global'
    the command was successful and the link was created. Now i tried to access a table of the scott user of the global server.
    select * from emp@global;
    now it is giving error. I want to know how the link can be created and how it can be accessed. i refered the 8i online documentation and done the things based on that. i expect valuble solution from all possible persons
    null

    A reason for this problem could be that your database is configured that a database link has to have exactly the same name like the global name of the database instance it should connect to.
    Can you please provide the oracle error code / message ? With this information there might be more hints I can give you.

  • Networking a firewire hard drive from a Mac and access the drive from a PC

    I'm trying to network a firewire hard drive from my Mac and access that hard drive from a Windows XP PC. I can see the main internal hard drive but I cannot see the firewire hard drive. Does anybody have a solution or work around?
    Many thanks,
    Roy

    Thanks SO MUCH! Not only does it work, BUT IT IS FREE!!!!
    See, I have two firewire (external) HDs, connected to a Mac, connected to a PC, connected to a USB external HD... now I can share files from the USB HD to the firewire HDs!
    Gotta love technology!
    Matthew

  • How can I safely transfer my 125GB of itunes music files to free up space, but still keep itunes on my MBP, and access the music with the cloud and match?

    I have already backed up all the itunes files on two different external drives. And I have already set up icloud and itunes match. I am still paranoid about deleting the files from my MBP, but I need to free the space. What steps should I take to delete the files. And can I still keep itunes (w/o all the music files) on my laptop and access the music from the cloud? I know I can run them with the external drive plugged in, but looking for a way to do it w/o pluggin in.

    I have tried that as well.  The purchased songs are not in my playlists and they are still there.  I manually deleted them on the phone but the sync puts them right back on there.
    I only sync playlists and they aren't on there. 

  • Can 2 people in different locations at the same time import, access, send, and receive the same messages from the same email account

    I import messages into Thunderbird. I send and receive emails. One of the things I like about Thunderbird is that I can insert (image, link, etc) right where I want to, and I can Attach. But not just a simple attach file. No, I can also click Attach and choose Webpage. A lot of web-based emails are plain, simple, no frills - Attach file and that's it.
    So I need to have my client be able to do the same thing I do when sending out emails, Namely sending out emails with an Electronic Press Kit (EPK) attached - which is to say, a webpage (not a pdf in our case). So, I need her to download, install, and use Thunderbird.
    Here's the problem and my question. She needs to access, send, and receive from my email account. That would be easy if it was simple attach files - she could just login on the web, go to squirrel mail and bang it out.. Here it is: She needs to be able to import the messages to be able to reply to some messages - she needs access to what I have access to. She needs to use Thunderbird so she can take advantage of the features like insert image with link or attaching a webpage. My question is how will this affect my use? Can 2 people simultaneously and from different locations access and use the same email account or is it a case where her importing the emails would cut me off..Is it an either or thing? Basically, can her and I both import the emails or can they only be imported to one location at a time. Because every time someone sends me an email i get it right there on my Thunderbird application..it's imported to my Thunderbird..I want her and I to be able to do that without affecting each other. I don't want her to start importing to her desktop and then I can no longer import. If she says "point those messages to my computer what will happen to my ability to access them on my computer in the same manner I am currently?

    I think there is a contradiction in your requirements. You want two people to share an account and you don't want either to interfere with the other.
    The short and simple answer is to use IMAP to connect to the mail server. If your current email provider doesn't offer IMAP, find another that does. This is old technology already and it's disgraceful that some email providers haven't yet put it in place.
    IMAP means that your messages are stored on the server and both of you will see exactly the same set of messages. And therein lies the contradiction; you will both see changes made by the other so you are inherently interfering with one another.
    Caveats: some providers may not permit you both to access the account concurrently, and even if they do, things may become interesting if you both choose to work on the same message simultaneously.
    Note that all of this is about email servers and protocols; your choice of Thunderbird as your email client has little bearing on the situation.

  • HT2488 I imported pictures into iPhoto from my iPhone, when trying to find my pictures by clicking on iPhoto Library it is always empty. I had to create a new folder and copy the same exact pics in the new folder just to be able to access them.. help plea

    I imported photos into iPhoto from my iPhone, however i cannot access them. When clicking on iPhoto Library where they should be stored the folder is blank but if i open up iphoto from the dock menu they appear. I had to create a new folder just to access them. help please, because making a new folder takes up unnecessary space.

    There are many, many ways to access your files in iPhoto:   You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    There's a similar option in Outlook and many, many other apps.  If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    If you want to access the files with iPhoto not running:
    For users of 10.6 and later:  You can download a free Services component from MacOSXAutomation  which will give you access to the iPhoto Library from your Services Menu.
    Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and 10.5 Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    Drag and Drop: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    File -> Export: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    Show File:  a. On iPhoto 09 and earlier:  Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.    3.b.
    b: On iPhoto 11 and later: Select one of the affected photos in the iPhoto Window and go File -> Reveal in Finder -> Original. A Finder window will pop open with the file already selected.

  • Mail on iMac not accessing MS Exchange server but both iPhone and iPad access the same account with no problems.

    I have been using an iPhone and iPad to access my work emails via our MS Exchange server for a number of years now with no problems at all.  I recently replaced my home PC with an iMac (first Mac I have owned) but cannot get it to communicate with the exchange server.  I've checked and re-checked the information on the iMac and my iPad - I even deleted the mail account on the iPad and input the details concurrently with setting up on the iMac - but the Mac will not access the exchange server.
    I receive the message "The Exchange server "---------------" rejected the password for user "------"  Enter you password again or cancel."  I am using the correct password.  iPad and iPhone are logging on using that password fine.  iMac just ends up repeating this message.
    Our IT support at work assure me that there is no reason from their end for it not to work, and reasonably point to it working using the iPhone etc.
    I'd be extremely grateful if anyone can provide a solution to this basic, but extremely frustrating, little problem.

    iPhone and iPad use a different way of accessing the server.
    I don't know the exact details, but we are using Zarafa instead of Exchange and have the same problem:
    iPhone and the likes can connect to Zarafas z-push interface, which is some identical interface to the native Exchange interface, while the desktop e-mail application tries to interface with the web front end (via http) of the server.
    These are completely different setups and it depends on the actual installation of the server to get this going.
    So, you will most likely need different access parameters for the desktop - and the web mail feature has to be enabled on the Exchange server.
    In my opinion using the web mail interface is just silly. On the other hand, the native protocol has less features comparedto the web front end, so you are somehow stuck with sins of the past.
    Good luck!

  • Error while accessing a file located in the server from JSP

              Hi
              I am having problem while accessing the file located in the server from a JSP
              page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              The same code is working if the jsp placd under defaultwebApp directory and not
              working if i create a war and deploy the same.
              I am using weblogic server 7.0 trail version.I am setting the context path also.
              Can any help me in this regard.
              Thank And Regards
              Anand Mohan
              

              Hi
              Thank you.Is there a way to read a file which is existing in the war file.
              Regards
              Anand Mohan
              "Wenjin Zhang" <[email protected]> wrote:
              >
              >In Weblogic, if your files are archived in a WAR, you cannot get an entry
              >as individual
              >file since it is only bytes in a large archive file. So getRealPath will
              >give
              >you null result. If you only want the path, try to use other getXXXPath,
              >getURL,
              >or getURI method. If you want to read the content, use getResource.
              >
              >
              >"Anand" <[email protected]> wrote:
              >>
              >>Hi
              >>I am having problem while accessing the file located in the server from
              >>a JSP
              >>page. I am not getting the RealPath from a JSP page using getRealPath(request.getServletpath()).
              >>
              >>The same code is working if the jsp placd under defaultwebApp directory
              >>and not
              >>working if i create a war and deploy the same.
              >>
              >>I am using weblogic server 7.0 trail version.I am setting the context
              >>path also.
              >>
              >>Can any help me in this regard.
              >>
              >>Thank And Regards
              >>
              >>Anand Mohan
              >
              

  • I had my computer replaced but copied my hard drive and now I can't access my firefox bookmarks, how can I go and extract the bookmarks from my copied harddrive?

    My HP Touchsmart was sent back in to HP for repairs under warranty. I was advised to make a copy of my harddrive because they may erase my hard drive, which they did, if the problem had to do with a faulty motherboard, which it was. They replaced my HD with a brand new one and now I DO NOT have any of my data installed in the new computer. Luckily I still have an exact replicate of my hard drive on a seperate external HD. However, when I looked in the bookmark.html under the firefox folder, the bookmarks were all blank and none of my bookmarks were there. I checked the properties tabe and it was dated sometime in March of 2011, earlier this year. I have a lot of stuff I wish to pull out from. The Firefox version I was using was the 3.6.16 and the file version was 1.9.2.4095, my OS was use Windows 7 Ultimate 64-bit. I would like to be able to access it again. Please help. Just a heads up but I'm taking a guess you guys already know, that the information under troubleshooting information is of my current computer and not the same as the one that is copied in my hard drive.

    Sorry, I don't find a support article for that type of situation. Read these two articles for help, as bookmarks.html isn't the file type you should be looking for.
    https://support.mozilla.com/en-US/kb/Lost+Bookmarks
    http://support.mozilla.com/en-US/kb/Recovering+important+data+from+an+old+profile

  • Accessing the same stateful session bean from multiple clients in a clustered environment

    I am trying to access the same stateful session bean from multiple
              clients. I also want this bean to have failover support so we want to
              deploy it in a cluster. The following description is how we have tried
              to solve this problem, but it does not seem to be working. Any
              insight would be greatly appreciated!
              I have set up a cluster of three servers. I deployed a stateful
              session bean with in memory replication across the cluster. A client
              obtains a reference to an instance of one of these beans to handle a
              request. Subsequent requests will have to use the same bean and could
              come from various clients. So after using the bean the first client
              stores the handle to the bean (actually the replica aware stub) to be
              used by other clients to be able to obtain the bean. When another
              client retrieves the handle gets the replica aware stub and makes a
              call to the bean the request seems to unpredictably go to any of the
              three servers rather than the primary server hosting that bean. If the
              call goes to the primary server everything seems to work fine the
              session data is available and it gets backed up on the secondary
              server. If it happens to go to the secondary server a bean that has
              the correct session data services the request but gives the error
              <Failed to update the secondary copy of a stateful session bean from
              home:ejb20-statefulSession-TraderHome>. Then any subsequent requests
              to the primary server will not reflect changes made on the secondary
              and vice versa. If the request happens to go to the third server that
              is not hosting an instance of that bean then the client receives an
              error that the bean was not available. From my understanding I thought
              the replica aware stub would know which server is the primary host for
              that bean and send the request there.
              Thanks in advance,
              Justin
              

              If 'allow-concurrent-call' does exactly what you need, then you don't have a problem,
              do you?
              Except of course if you switch ejb containers. Oh well.
              Mike
              "FBenvadi" <[email protected]> wrote:
              >I've got the same problem.
              >I understand from you that concurrent access to a stateful session bean
              >is
              >not allowed but there is a
              >token is weblogic-ejb-jar.xml that is called 'allow-concurrent-call'
              >that
              >does exactly what I need.
              >What you mean 'you'll get a surprise when you go to production' ?
              >I need to understand becouse I can still change the design.
              >Thanks Francesco
              >[email protected]
              >
              >"Mike Reiche" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Get the fix immediately from BEA and test it. It would be a shame to
              >wait
              >until
              >> December only to get a fix - that doesn't work.
              >>
              >> As for stateful session bean use - just remember that concurrent access
              >to
              >a stateful
              >> session bean is not allowed. Things will work fine until you go to
              >production
              >> and encounter some real load - then you will get a surprise.
              >>
              >> Mike
              >>
              >> [email protected] (Justin Meyer) wrote:
              >> >I just heard back from WebLogic Tech Support and they have confirmed
              >> >that this is a bug. Here is their reply:
              >> >
              >> >There is some problem in failover of stateful session beans when its
              >> >run from a java client.However, it is fixed now.
              >> >
              >> >The fix will be in SP2 which will be out by december.
              >> >
              >> >
              >> >Mike,
              >> >Thanks for your reply. I do infact believe we are correctly using
              >a
              >> >stateful session bean however it may have been misleading from my
              >> >description of the problem. We are not accessing the bean
              >> >concurrently from 2 different clients. The second client will only
              >> >come into play if the first client fails. In this case we want to
              >be
              >> >able to reacquire the handle to our stateful session bean and call
              >it
              >> >from the secondary client.
              >> >
              >> >
              >> >Justin
              >> >
              >> >"Mike Reiche" <[email protected]> wrote in message
              >news:<[email protected]>...
              >> >> You should be using an entity bean, not a stateful session bean
              >for
              >> >this application.
              >> >>
              >> >> A stateful session bean is intended to be keep state (stateful)
              >for
              >> >the duration
              >> >> of a client's session (session).
              >> >>
              >> >> It is not meant to be shared by different clients - in fact, if
              >you
              >> >attempt to
              >> >> access the same stateful session bean concurrently - it will throw
              >> >an exception.
              >> >>
              >> >> We did your little trick (storing/retrieving handle) with a stateful
              >> >session bean
              >> >> on WLS 5.1 - and it did work properly - not as you describe. Our
              >sfsb's
              >> >were not
              >> >> replicated as yours are.
              >> >>
              >> >> Mike
              >> >>
              >> >> [email protected] (Justin Meyer) wrote:
              >> >> >I am trying to access the same stateful session bean from multiple
              >> >> >clients. I also want this bean to have failover support so we want
              >> >to
              >> >> >deploy it in a cluster. The following description is how we have
              >tried
              >> >> >to solve this problem, but it does not seem to be working. Any
              >> >> >insight would be greatly appreciated!
              >> >> >
              >> >> >I have set up a cluster of three servers. I deployed a stateful
              >> >> >session bean with in memory replication across the cluster. A client
              >> >> >obtains a reference to an instance of one of these beans to handle
              >> >a
              >> >> >request. Subsequent requests will have to use the same bean and
              >could
              >> >> >come from various clients. So after using the bean the first client
              >> >> >stores the handle to the bean (actually the replica aware stub)
              >to
              >> >be
              >> >> >used by other clients to be able to obtain the bean. When another
              >> >> >client retrieves the handle gets the replica aware stub and makes
              >> >a
              >> >> >call to the bean the request seems to unpredictably go to any of
              >the
              >> >> >three servers rather than the primary server hosting that bean.
              >If
              >> >the
              >> >> >call goes to the primary server everything seems to work fine the
              >> >> >session data is available and it gets backed up on the secondary
              >> >> >server. If it happens to go to the secondary server a bean that
              >has
              >> >> >the correct session data services the request but gives the error
              >> >> ><Failed to update the secondary copy of a stateful session bean
              >from
              >> >> >home:ejb20-statefulSession-TraderHome>. Then any subsequent requests
              >> >> >to the primary server will not reflect changes made on the secondary
              >> >> >and vice versa. If the request happens to go to the third server
              >that
              >> >> >is not hosting an instance of that bean then the client receives
              >an
              >> >> >error that the bean was not available. From my understanding I
              >thought
              >> >> >the replica aware stub would know which server is the primary host
              >> >for
              >> >> >that bean and send the request there.
              >> >> >
              >> >> >Thanks in advance,
              >> >> >Justin
              >>
              >
              >
              

  • Can I access the same library from 2 computers?

    I just purchased and installed Photoshop Elements 10 on my main computer at home.  Awesome tool!
    I just loaded up over 25,000 pictures taken over the last 12 years and am slowly going through the task of tagging them.  My question is as follows:
    If install on a second computer, how do I access the library from the main computer?  I am thinking that I can tag come pics during my lunch hour and get through this faster at the office but how do I move the library from one computer to the next? 
    I don't think the library is actually "moveable".  Does it not just sort what is already on my main computer? 
    All suggestions welcome!

    If your photos and catalog file are on an external HD, then you would have to bring the external HD wherever you want and PSE will work, provided that the drive letters are the same on both computers. (Example, if the external HD is E:\ on your home computer, it would have to be E:\ on the other computer).
    You can move the catalog file and everything else in that folder via Windows. If you need to move the photos, this must be done in PSE (Folder Location View).

  • I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work)

    I keep getting an error when trying to update an app- cannot connect to store. I logged out from my account and tried to log back in and got the same error. I am doing all this from my phone since I no longer own a personal computer (only work) since I use iCloud and I tunes match

    YAY!!! Saved it in my Mac's Firefox Bookmarks for easy future access!
    Hope you are having a lovely afternoon today! I'm about ready to go bobo....I have an early meeting, and I don't want to oversleep! The nice part is that I work remotely, so I only have to wake up 15 minutes or so before the meeting.... I don't even use an alarm clock anymore (really, my iPhone alarm, which is much more pleasant), unless I have to get up at 6:30 or something....
    TMI?
    GB

  • Can we open a URL link from an RFC and access the data in the link.?

    Can we open a URL link from an RFC and access the data in the link.
    I have the following scenario.
    I have a URL link and it opens a KM folder in the Portal server and I need to put a PDF file in that KM folder
    Can we do that with the help of an RFC, can we deal with Links in RFC, is there any such FM??
    Regards

    >
    SAP LEARNER wrote:
    > Can we open a URL link from an RFC and access the data in the link.
    >
    > I have the following scenario.
    >
    > I have a URL link and it opens a KM folder in the Portal server and I need to put a PDF file in that KM folder
    >
    > Can we do that with the help of an RFC, can we deal with Links in RFC, is there any such FM??
    >
    > Regards
    I guess you are trying to connect from the R3/ECC to the Portal Server.
    Are these two systems in the same network? Do you have usernames (valid and fully authorized) in both systems? What is the OS on which these two systems are housed?
    Please provide these details to proceed further.
    Regards
    Sabu

  • I have recently bought a second I phone4 and have the same apple ID on both of them, strangely I noticed the messages sent from one phone appearing the other one along with any pictures I sent from one of my Iphones. Is it possible to see the same msgs.

    I have recently bought a second I phone4 and have the same apple ID on both of them, strangely I noticed the messages sent from one phone appearing the other one along with any pictures I sent from one of my Iphones. Is it possible to see the same msgs.

    You need to setup different Receive At addresses for iMessage.
    If you don't want the same pics on each, turn off PhotoStream.
    User Guide

  • Can ABAP program and a Java apps access the same DB table?

    If an ABAP program and a Java apps access the same DB table, how does the Enqueue services from ABAP and Java communicate with each other to ensure locking consistency (if they even communicate with each otehr at all)?
    Or there wont be such situation because there are separate schema for ABAP stack and Java stack?
    Your help is greatly appreciated.

    Hello!
    A while ago I was a subject to criticism too for not granting points to helpfull answers. I appeared to be ungratefull, but I'm actually not (I guess the same goes for Vincent). I absolutely agree that good people who provide helpfull answers deserve (at least) points, but I didn't quite get the whole idea with points untill I was explicitly warned. I took some time to correct this and I granted points for all my past questions, generously, with "interest rates" for waiting.
    My point is:
    The pointing system is good, but unintuitive and not documented. I suggested this at that time, and I see that nothing has changed since. I see also that I'm not the only one who has experienced missunderstandings.
    I repeat the message to SDN people: Please provide some info on pointing system! A few sentences behind a "What's this?" link would do. It's not such a hard work.
    Thanks!
    Kind regards,
    Igor Barbaric

Maybe you are looking for

  • BPM scenario issue

    hi We have scenario where Messages flow from TIBCO, gets converted into IDOCs in XI and rend it to other SAP system. For some-reason all though messages were in XI but not processed completly, all most every message status set to 'Scheduled for Outbo

  • TFS Power Tool 2013 Process Editor won't launch

    I installed VSTF 2013 (Team Explorer for Visual Studio 2013) and also TFS Power Tool (12.0).  I rebooted after installing and then launched VSTF successfully and connected to my Team Project successfully.  I then go to ""Tools>Process Editor>Work Ite

  • Windows is not recognizing the ipod

    I plugged my Ipod into a friends computer to charge. After which the Ipod gave me the "Do not Disconnect" sign for about an hour. Now, when I plug the ipod back into my computer it does not recognize the Ipod. I have a feeling that it needs to be res

  • Can't transport an user exit

    Hi,   I don't know if here is the rigth place to ask this but I hope someone else can help me. We modify an user exit but in the moment it saved only permit be saved like an object local. So we can't transport it to production. The question is how ca

  • Invalid Handle Error for WSRP Struts Portlet

    Hi, I am in process of modifying our existing struts application so that I can access it as remote portlet. I followed the Integrating Existing Struts Application guide and created a portlet. When I tried to use this portlet, I started getting follow