Help needed connecting to MySQL

Please could someone tell me how to connect to a MySQL database. I'm using Tomcat 4.0 and Forte. I just want to know where to put the database (i.e under <tomcat-install>\?? or <forte-install>\??) and how the connection works in Forte.

MySQL goes into it's own directory (doesn't really matter where). It needs to be started separately from either Tomcat or Forte.
In Tomcat or Forte (or any app that needs to connect to the database) you need to have a JDBC driver for Tomcat (ConnectorJ, previously known as mm-mysql, for example). The jar-file for this driver needs to be on the classpath (in Tomcat, you can put it in the master lib directory, or distribute it with each web application that needs a database connection).
Have a look at the JDBC and ConnectorJ documentation on how to proceed from there.

Similar Messages

  • Help with connection to mysql database, Getting error : No suitable Driver

    Below is my code :
    1) i have added the mysql driver (mm.mysql-2.0.14-bin.jar)in my classpath
    2) the code is getting compiling properly
    3) while running it using tomcat, it says "NO SUITABLE DRIVER"
    PLEASE HELP !!
    import java.io.*;
    import java.text.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class logincheck extends HttpServlet {
    public void doGet(HttpServletRequest request,HttpServletResponse response)
    throws IOException, ServletException
    Connection con = null;
    PrintWriter out = response.getWriter();
    response.setContentType("text/html");
    PreparedStatement stmt = null;
    ResultSet rs = null;
    String userid = request.getParameter("userid");
    String password = request.getParameter("password");
    try {
    /** LOADING THE DRIVER FOR MYSQL DATABASE ***/
    Class.forName ("org.gjt.mm.mysql.Driver";
    } catch (ClassNotFoundException e) {
    e.printStackTrace();
    } //End of try-catch 1
    try{
         /*** CONNECTING TO THE DATABASE USING DATABASE NAME, USERNAME AND PASSWORD */
    con = DriverManager.getConnection("jdbc:mysql://localhost:8080/own");
    /****** this checks whether the entry for the user is in the database *****/
    stmt = con.prepareStatement("SELECT *FROM userinfo WHERE userid = ? AND passwd = ?");
    stmt.setString(1,userid);
    stmt.setString(2,password);
    rs = stmt.executeQuery();
    if(!rs.next())
    else
         /****************** IF THE USER AND PASSWORD ARE VALID *****************/
    //} // END OF RS.....
    // NEED HTML FOR INVALID USERID SHOWING MESSAGE ...
    con.close();
    }catch(SQLException esql){
    System.out.println(esql.getMessage());
    } // End of try-catch 2
    } // goGet
    public void doPost(HttpServletRequest request,HttpServletResponse response)
    throws IOException, ServletException {
    doGet(request, response);
    } // goPost
    } // end logincheck function ...

    And i see another thing that confuses me. Your URL connection string is
    con = DriverManager.getConnection("jdbc:mysql://localhost:8080/own"); meaning that your database is in your machine and listens in port 8080 for incoming connections. But that is the default port that Tomcat listens! Maybe you should change this line to
    con = DriverManager.getConnection("jdbc:mysql://localhost:3306/own");where 3306 is MySQL's default port.
    Hope these help.

  • Help needed connecting PC to AirportExpress

    I have a desktop connected wirelessly to my router which I was hoping to tap into to pipe music into my living room to play off of some speakers via airport express. However...
    I plugged in the AirPort Express, and it just keeps blinking yellow. I ran the install and opened up the Setup Assistant and it tells me that "An error occured trying to use the wireless networking system". I'm am using that very same wireless system to write and submit this post...so I know it works. But how can I get the two to communicate the way they need to?
    I should also mention that no base stations show up in either the Setup Assistant or the Admin Utility.

    Welcome to the discussions
    Check a couple of things.
    http://www.apple.com/support/downloads/airportexpressfirmwareupdate63forwindows. html
    You might also look at Airport for Windows that should help as well.
    http://www.apple.com/airportexpress/
    Cheers Don

  • Help needed connecting 2 routers

    Hello, I've been scratching around looking for a solution to my problem for a couple of weeks now.
    I have 2 routers (connected as per the pic below) - I have configured it so that I can collect access logs (this is one of the few routers I've found than can log internet URLs) for anyone who connects via wifi on the BEF router, however I can only get an internet connection if I use a LAN port (as per the red line). I've read that in order to log activity I need to connect via the internet port (yellow dotted line), but I can't get it to work and it's frustrating the heck out of me now
    Does anyone have any solutions for this?
    Thanks in advance.
    Solved!
    Go to Solution.

    Thank you for your help, re-instating the DHCP did the trick (after a power cycle).
    Just in case anyone else needs to do this, here is my final config;
    WAG160N is set to 192.168.1.1 with DHCP enabled.
    BEFW11S4 is set to 192.168.2.1 with DHCP enabled and auto select IP address.
    Thanks for all the suggestions everyone - just need a Wireless N ADSL router (to replace the two I've got hooked up) that can log all internet traffic now

  • Help needed connecting Iomega Minimax Ext HDD to Airport Extreme 802.11n

    Would appreciate if someone can help me with the following task. After researching and trying several things, I have not succeed in resolving the issue.
    I want to connect a Iomega MiniMax Ext HDD (for Mac) to my (Airport Extreme 802.11n + Time Capsule) box using the USB port at the back of my Airport Extreme. Then I want to access the Ext HDD wirelessly as a drive on my Macbook (snow leopard OS). I was told this was possible at the Apple Store...but have failed so far.
    Any suggestions so far

    Hello smitra. Welcome to the Apple Discussions!
    The following are the basic steps for sharing an external USB drive attached to either an 802.11n AirPort Extreme Base Station (AEBSn) or a Time Capsule (TC):
    o Plug the hard disk into the USB port on the back of the base station.
    o Open AirPort Utility, located in the Utilities folder in the Applications folder on a Mac, and in Start > All Programs > AirPort on a computer using Windows
    o Select your base station, and then, choose Manual Setup from the Base Station menu.
    o Click Disks in the toolbar, and then, click File Sharing.
    o Choose “With a disk password,” or “With base station password” if you want to secure the shared disk with a password, or choose “With accounts” if you want to secure the disk using accounts. If you choose to use accounts, click Configure Accounts, click the Add "+" button, and then enter a name and password for each user that will access the disk. For simplicity, I would recommend using the "With a disk password" option.
    o Choose “Not allowed,” “Read only,” or “Read and write” to assign guest access to the disk.
    o Select the “Share disks over Ethernet WAN port” checkbox if you want to provide remote access to the disk over the WAN port.
    You should now be able to find this drive within Finder under the SHARED category.

  • Urgent Help needed : Connecting Access 2000 with forms 6i

    Dear friends,
    I am really struggling to solve this connection issue. I am working with forms 6i, oracle 8i, in Windows XP pro environment. Developing programs using oracle 8i tables is ok, but there are tables in Access 2000, which I have to add the program that I am developing. The things I have done are
    - I have already tables in MS Access databse.
    - I Installed ODBC for microsoft and for Oracle as well(which . I added the MS Access Database there and I can perfom SQL from Oracle ODBC.
    - I also installed OCA for developer from the CD.
    From this point I followed the instructions in Developer Help menu and I was not able to connect and still trying, I will appreciate if anyone provide me sometips. Thanks in advance
    Best Regards

    Hi,
    I know the bad solution. But anyway, I'll tell you in any kind of help. I also had an AccessControlException when I started a RMI client program using JFileChooser. I rewrote policy files again and agin, but in vain. The last and ultimate method I did was remove the RMISecurityManager. This is obviously dangerous in the Internet, but if you use your application in the intranet or in some kind of safe environment. There would be no problem.
    Hope this could be any kind of your help.

  • New Installation Help Needed - Connection Timeout

    New to the home and Verizon service from a combination modem/router. In Airport Utility, chose to connect to a wireless network and add AE in order to extend my current network (the issue is distance to an important computer). The utility seems to run okay and there is a green light at the end of the routine. I have tried every combination available and either continue to get the Connection Timeout or cannot see the network at all.
    Any suggestions?
    I tried adding in my old Linksys router and while the network name appears an error message is always given that the user is not connected to the internet.

    josephchatham, Welcome to the discussion area!
    To extend the wireless network created by the Verizon base station you will need to connect the AirPort Express (AX) via Ethernet. The AX can not wirelessly extend the network created by that base station.

  • Help Needed-Connection Url String for Oracle8i

    DriverManager.getConnection(Url , username ,password);
    In the above , I need the connection url for Oracle8i Database.
    Thanks..

    This works for me:
    jdbc:oracle:thin:@HOST:1521:INSTANCE
    Where HOST and INSTANCE represent the machine running oracle and DB instance. 1521 is the default port but may be changed.
    Mike

  • Help Needed connecting a second Airport Express

    I have a perfectly functioning Airport Express. It is connected to a Router and I have DSL. I have encryption and it is password protected. We have 5 Macs that blissfully use this A.E. You would think I would be happy, right?
    My (ahem) wife, then wanted a printer connected in our bedroom (which is quite 2 rooms down from the terminus of the router/1st A.E.) My problem is that I purchased a second Airport Express so that I could plug the printer into the 2nd A.E. Now, I cannot get the second A.E. to become part of the network. It continually blinks green and yellow. I cannot get it to see the 1st A.E. that is connected to my router. The 1st A.E. still chugs along great without problems. Any ideas available to get the 2nd to communicate with the first? My wife is ready to disown me and I need the tax deduction

    Set up the second AirPort Express (AX) as a wireless client. (ref: http://docs.info.apple.com/article.html?artnum=302153)

  • Help Needed Connecting my new Ipod to Computer

    I have a new Ipod 30 gb. when first connected to home computer, i downloaded the entire music library onto ipod with no problems. then loaded software onto different pc, and connected ipod which promptly wiped all music files from ipod. When connecting back to original computer it keeps telling me that someone else is logged in and does not register the ipod on the original computer.
    How do i get the original computer to recognise the ipod and download the library back onto the ipod?
    HELP!
    Thanks
    Ipod 30GB   Windows XP Pro  

    Any experts out there? I am struggling with this one.
    I have a new Ipod 30 gb. when first connected to
    home computer, i downloaded the entire music library
    onto ipod with no problems. then loaded software
    onto different pc, and connected ipod which promptly
    wiped all music files from ipod. When connecting
    back to original computer it keeps telling me that
    someone else is logged in and does not register the
    ipod on the original computer.
    How do i get the original computer to recognise the
    ipod and download the library back onto the ipod?
    HELP!
    Thanks
    Ipod 30GB  
    Windows XP Pro  

  • Help Needed - Connecting a new Router

    Hi,
    I have just bought an asus rt-ac68u router to replace my old BT home hub 3. I have connected it to the existing BT openreach modem
    I have configured the new router. The WAN settings are PPoE. The router is showing as connected to the Internet.
    However the problem is my computer shows the network is not connecting to the Internet despite the router saying it is connected. When I run a windows network diagnostics test it says there may be a problem with your Domain Name Server configuration
    Has anybody got any ideas what I have done wrong. I've left the dns field to set themselves automatically.
    Appreciate any help you can give. I don't know much about networks, the instructions made it look like it would be pretty much plug and play
    Thanks

    I don't have this router but going by the instructions here
    http://www.asus.com/uk/Networking/RTAC68U/HelpDesk_Manual/
    it should be fairly straight forward to set up. All the setting should be populated automatically when you connect with the exception of the setting I gave you.
    If you have changed or put in any settings other than the PPPoE and account name etc I gave you I would carry out a factory reset of the router and start again following the instructions to the letter.
    Make sure you are connecting by Ethernet before trying to connect by wireless.

  • Help needed connecting iMac and PowerBook to Blueyonder cable boradband

    I'm not too knowlegeable aboout computers, so please be gentle with me!
    I have had broadband supplied by Blueyonder (cable) for some time with no problems.
    I have now bought a G4 PowerBook and an Airport Extreme unit and with them to share the internet connection and to share files.
    The iMac has no AirPort card so I want to connect that via Ethernet, but the laptop will be wireless.
    I have managed (just) to get the network set up so the two computers can share files (so I assume the AirPort unity isn't faulty), but I cannot get either machine to connect to the internet when connected to the AirPort Extreme. I can only connect by plugging the ethernet cable from my modem directly into my iMac.
    I used the Airport Setup Assistant on the laptop and ended up with a message saying that I was now connected to the internet wirelessly, but when I launch Safari, I cannot reach the net at all. I then used the AirPort Admin utility on the desktop to try to configure the
    I expect anyoen answering this will need more information... but can anyone supply some pointers?
    The desktop used OS X.3.9 and the laptop OS X.10.4 though I doubt this makes a difference.
    Many thanks.
    iMac G4   Mac OS X (10.3.9)  

    Power down the cable modem.
    Wait 30 minutes (go and have a cup of tea or something).
    Connect the cable modem to the WAN port of the Airport Extreme Base Station (AEBS).
    Switch on the cable modem.
    Switch on the AEBS.
    Wait five minutes.
    Switch on the PowerBook and see if it now works.
    If it does, plug the iMac into the LAN port of he AEBS.
    Use the Airport Setup Assistant in the Utilities folder to configure the AEBS.
    iFelix

  • Help needed connecting to database

    I have had difficulty following the instructions in the
    getting started manual for Dreamweaver MX in Chapter 7 (Setup for
    Sample ColdFusion Site) in the section "connecting to the sample
    database" under "creating a ColdFusion data Source". It says:
    "1 In Dreamweaver, open a ColdFusion page.
    2 In the Databases panel (Window > Databases), click the
    Modify Data Sources icon (the second icon from the right on the
    panel toolbar).
    ColdFusion Administrator opens in a browser.
    3 Log in to ColdFusion Administrator and create a data source
    called connGlobal pointing to the global.mdb database file."
    Not knowing what a "ColdFusion page" is, I try clicking
    File>New... and edit preferences to set the default to
    Coldfusion page, close and reopen dreamweaver so that it says
    "document type: ColdFusion" in the application>databases panel.
    However, when I click on Modify Data Sources, a "Coldfusion
    administrator URL" box appears prompting with
    http://localhost/cfide/administrator/datasources/index.cfm.
    When I click OK it does nothing (and clicking Test produces error
    404) and I don't get a login prompt.
    Can someone tell me if I'm on the right track? Thankyou,
    Charles

    Do you have ColdFusion installed on your PC? You can get a
    free developer version from Adobe. Then, you'll need to set up your
    site's Testing Server, server model as ColdFusion.

  • Ichat Help Needed: Connection Problem

    I purchased a new imac about 2 months ago. I have been having problems with my ichat ever since the beginning. When ever I open my ichat to login it says: Lost connection with AIM, the connection to the host was unexpectedly lost, Almost immediately upon login. I have never infact been able to access ichat because I can never login. My internet connection is fine, I have been using the internet with no problems what so ever. I have been using AIM express in the time being and it has worked fine. I have tried updating my software and creating a new AIM screen name but it hasent helped. I would greatly appreciate if someone could tell me how to solve this problem.
    Thank You.
    iMac Mac OS X (10.4.10)

    hi Olivier,
    In that case do two things
    1) Download and Instll the Combo version of the Update
    See this list http://www.apple.com/downloads/macosx/apple/macosx_updates/
    2) reboot the Modem and or router.
    1:35 PM Wednesday; July 11, 2007

  • Help needed connecting iPhone 5c to Windows 8.1 using Parallels 10 on Mac

    I cannot for the life of me figure out how to get my iPhone to be recognized on my virtual machine- Windows 8.1 via Parallels 10.   I have read this documentation and keep getting dead ends iPhone, iPad, or iPod touch not recognized in iTunes for Windows - Apple Support   .    
    IPhone is recognized perfectly by iTunes in OS X, so I know my cable is good at least.
    Any help in resolving this matter would be much appreciated.

    According to the information I found on this HP support forum, it appears that the wireless card is 2.4GHZ only. I'll let you read on it. http://h30434.www3.hp.com/t5/Wireless-Internet-Home-Networking/hp-15-e050sa-5-GH z-Wireless-enabled/td-p/3448679

Maybe you are looking for

  • How can I view and manage disk usage from all user accounts at once?

    I need to clean up the internal drive on my 2009 MBP.  We have 6 accounts on that machine.  Rather than go into each account separately and do some house cleaning, is there some kind of Admin option to view and clean up files for all accounts from on

  • Problem with Adobe Reader 9.1.3/Firefox plugin

    After applying the Reader 9.1.3 update on our Windows XP computers (using Firefox 3.5.2), some PDFs downloaded will not load properly using the web browser plugin.  An example is at http://apply07.grants.gov/apply/opportunities/packages/oppONRBAA09-0

  • Selection variant F110

    Hi, Anyone knows how can I configure a selection variant for the payment program? I have gone as far as reaching the variant attributes that are copied directly from the assignment of the selection Screen, however the field I want to change PAR_UNIX

  • Size of .mov and encoding time

    Hey. Does anyone know the appoximate size of a 40 min .mov movie and after imported in DVS Studio Pro 2- how long does it take to encode it? Minutes? Hours? Days? Thanks!

  • Help i accidently got my iphone in water

    hello, i accidently got my iphone in water. i pulled it out immediately but the apple logo is still flashing. please hope i didn't break it!