• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to install mysql for java

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Ranchers,
I am trying to install mysql and wanna use it with java.I have installed the server.My problem is what else should I and how I have to install to work with Servlets and JSPs and the Mysql.I have setup of mysql-connector-odbc and mysql-connector-java.Thank you alot guys,regards,
Monica
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Monica,

mysql-connector-j is a jdbc driver. You need to read up on JDBC as the next step. I'd recommend taking a look at javadocs for DriverManager and Connection in the standard JDK.

Also, there's the JDBC tutorial here:

http://java.sun.com/docs/books/tutorial/jdbc/index.html

Cheers,
 
Ranch Hand
Posts: 381
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Find yourself a MySQL tutorial and admin tool as well.
 
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Monica did you get yours to work yet?
roba
 
Ranch Hand
Posts: 2023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Connecting to MySQL using JSP and JDBC
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Monica,
You will need to install "mysql-connector-java-3.1.12-bin.jar". and add its location to your classpath.
Like if the u have istalled the driver at "C:\mysql-connector-java-3.1.12\mysql-connector-java-3.1.12-bin.jar;" add this path to your classpath.

How this helps.

-Nilesh
 
Hey! You're stepping on my hand! Help me tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic