The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

JSP connecting with MySQL databases::URGENT

Discussion in 'General Discussion' started by saleem3, Oct 8, 2002.

  1. saleem3

    saleem3 Registered

    Joined:
    Oct 8, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    He says:

    &We need to upload our JSP pages but having database connectivity
    problem. Please help us as soon as possible.

    We want to upload our Database-Driven JSP pages. But we don't know that
    which JDBC driver is being used for MySQL by you?

    Tell us how to connect to MySQL database through JSP pages.

    Or

    You simply send us an example JSP page showing how to connect to a MySQL
    database through a JSP page&

    I have no clue about how I would go about doing this. If any jsp guru can help, please PM me with your AIM/ICQ/Email or reply to this message with how to do so or with an attachment=]

    Thanks a big one=]
     
  2. saleem3

    saleem3 Registered

    Joined:
    Oct 8, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    7 views no response=(
     
  3. jsteel

    jsteel Well-Known Member

    Joined:
    Jul 4, 2002
    Messages:
    646
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Atlanta, GA
    Not being rude here, just honest:

    1) You shouldn't be offering services you don't know how to support.
    2) This question doesn't belong in the WHM/Cpanel forums.
    3) Go do a search on the Internet for 'MySQL JDBC'. You're sure to find what you need (hint: mm.mysql).
     
  4. SonServers

    SonServers Well-Known Member

    Joined:
    Oct 24, 2001
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    6
    If you go into the MySQL manager in your account's Cpanel, it will give you a list of databases on your account along with how to connect to them with Perl, PHP, and JDBC.

    I don't know JDBC but I see that Cpanel gives you the code of how to connect.

    Hope that's what you need. :)
     
  5. saleem3

    saleem3 Registered

    Joined:
    Oct 8, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    'Cpanel, it will give you a list of databases on your account along with how to connect to them with Perl, PHP, and JDBC.'

    ...I don't see any extra menu that does this. Can you specify where exactly..
     
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    In the users Cpanel click on Mysql. It will list all the DB's as well as the connect strings for various methods.
     
  7. Iain Shortreed

    Joined:
    Oct 8, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    i never knew what they were for, thanks, you have solved a php crisis with me site :P
     
  8. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [quote:0fe20e5c7d][i:0fe20e5c7d]Originally posted by saleem3[/i:0fe20e5c7d]

    ...I don't see any extra menu that does this. Can you specify where exactly..[/quote:0fe20e5c7d]
    There's no extra menu for this. Set up a MySQL database from Cpanel and then a user for that database. You will see the instructions under that user.
     
  9. kipper3d

    kipper3d Well-Known Member

    Joined:
    Jul 14, 2002
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    To add MySQL support for JSP all you need to do is duplicate the user for the db for % host. So you will have 2 user entries for same user but one for localhost and one for % so that JSP can connect to MySQL.

    -John
    www.displayhosting.com
     
  10. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    [quote:113bfc60fb][i:113bfc60fb]Originally posted by kipper3d[/i:113bfc60fb]

    To add MySQL support for JSP all you need to do is duplicate the user for the db for % host. So you will have 2 user entries for same user but one for localhost and one for % so that JSP can connect to MySQL.

    -John
    www.displayhosting.com[/quote:113bfc60fb]

    What? That does not have to be done in order for it to work. Once you create a db and assign a user, the connect strings will be listed. We have several people using jsp/mysql and nothing more had to be done.
     
  11. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    [quote:bf7fabcd17][i:bf7fabcd17]Originally posted by kipper3d[/i:bf7fabcd17]

    To add MySQL support for JSP all you need to do is duplicate the user for the db for % host. So you will have 2 user entries for same user but one for localhost and one for % so that JSP can connect to MySQL.

    -John
    www.displayhosting.com[/quote:bf7fabcd17]
    Are you talking about adding users manually through the mysql command line in SSH? You can actually do that in the cpanel gui & Access Hosts.

    Tomcat automatically installs the MySQL driver.
     
Loading...

Share This Page