Total members 11894 |It is currently Thu Nov 21, 2024 11:01 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





hello

I need help to find Mysql driver to connect to data base wih java code
and how to import it in net beans and code fe connection

thanks in advance




Author:
Newbie
User avatar Posts: 6
Have thanks: 0 time

Download the JDBC driver for mysql
http://www.mysql.com/products/connector/j/

Code:
try{
            try {
                Class.forName("org.gjt.mm.mysql.Driver");
            } catch (ClassNotFoundException ex) {
                ex.printStackTrace();
            }


In your netbeans project , you can add a jar file
From projects --> Add jar file


Attachments:
untitled.GIF
untitled.GIF [ 5.31 KiB | Viewed 5510 times ]

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada
Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : need help in jdbc with mysql
 JDBC     -  
 What is JDBC?!!!     -  
 Best Books for Servlet and JDBC     -  
 What are the types of jdbc drivers.?     -  
 JDBC Table Model example     -  
 good books of jsp and jdbc     -  
 Connecting to SQLServer 2000 using JDBC     -  
 need help in mysql     -  
 connect to MYSQL from ASP     -  
 import Mysql database     -  



Topic Tags

Java JDBC
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com