JSP connecting with MySQL databases::URGENT

saleem3

Registered
Oct 8, 2002
3
0
151
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=]
 

jsteel

Well-Known Member
Jul 4, 2002
646
0
166
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).
 

SonServers

Well-Known Member
Oct 24, 2001
94
0
306
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. :)
 

saleem3

Registered
Oct 8, 2002
3
0
151
'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..
 
Oct 8, 2002
12
0
151
i never knew what they were for, thanks, you have solved a php crisis with me site :P
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[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.
 

kipper3d

Well-Known Member
Jul 14, 2002
52
0
156
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
 

dgbaker

Well-Known Member
PartnerNOC
Sep 20, 2002
2,531
10
343
Toronto, Ontario Canada
cPanel Access Level
DataCenter Provider
[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.
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
[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.