Results 1 to 4 of 4
  1. #1
    UJJAL DHAR is offline Senior Member
    Join Date
    Apr 2010
    Location
    Dhaka,Bangladesh
    Posts
    180
    Rep Power
    0

    Default Connecting with database in java

    I can create database and access it.Now it is my job to connect my java code to database.I have downloaded JDBC.But I am facing problem using it.When I run my code, it says that "no driver found".What should I do now to access my database from my java code?:confused:
    Where should I keep JDBC?
    I am using MySQL.

    Thanks in advance.

  2. #2
    Webuser is offline Senior Member
    Join Date
    Dec 2008
    Posts
    526
    Rep Power
    0

    Default

    Have you imported your driver package?
    Show us your problem code ...

  3. #3
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,432
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by UJJAL DHAR View Post
    I can create database and access it.Now it is my job to connect my java code to database.I have downloaded JDBC.But I am facing problem using it.When I run my code, it says that "no driver found".What should I do now to access my database from my java code?:confused:
    Where should I keep JDBC?
    I am using MySQL.
    There is no need to download any JDBC separately, you only need an implementation thereof for your particular database. Usually it comes with your database distribution. All you have to do is put the .jar in your classpath.

    kind regards,

    Jos

  4. #4
    al_Marshy_1981 is offline Senior Member
    Join Date
    Feb 2010
    Location
    Waterford, Ireland
    Posts
    748
    Rep Power
    5

Similar Threads

  1. Java connecting to sql database
    By markious in forum New To Java
    Replies: 3
    Last Post: 04-14-2010, 09:58 PM
  2. Connecting to Teradata Database from java
    By drkpradeep in forum Advanced Java
    Replies: 5
    Last Post: 02-18-2010, 09:16 AM
  3. Connecting JSP with database
    By ramachandran in forum JavaServer Pages (JSP) and JSTL
    Replies: 3
    Last Post: 05-13-2009, 06:15 AM
  4. Connecting to a database
    By peiceonly in forum New To Java
    Replies: 2
    Last Post: 04-06-2008, 02:28 PM
  5. Problem connecting to my Database using Java
    By javaneed in forum New To Java
    Replies: 3
    Last Post: 08-13-2007, 09:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •