not able to connect to mysql using.. jdbc

not able to connect to mysql using.. jdbc

i am not able to connect to mysql using jdbc .. is there any classpath that i need to set..because i am using mysql-connector-java jar file..to connect to mysql.. Pls provide the steps in detail..THANK YOU!!

View Answers

October 25, 2011 at 2:37 PM

Put mysql connector jar file in tomcat lib and set classpath:

Go to Start->Settings->Control Panel->System->Environment Variables->New button and Set the values as

Variable Name:  CLASSPATH 
Variable Value:  C:\Tomcat 6.0\lib\mysql-connector-java jar;

Ads









Related Tutorials/Questions & Answers:
not able to connect to mysql using.. jdbc
not able to connect to mysql using.. jdbc   i am not able to connect to mysql using jdbc .. is there any classpath that i need to set..because i am using mysql-connector-java jar file..to connect to mysql.. Pls provide the steps
Connecting to remote mysql server using jdbc.
Connecting to remote mysql server using jdbc.  How to Connect to remote mysql server using jdbc
Advertisements
how to connect to database in php using mysql
how to connect to database in php using mysql  how to connect to database in php using mysql
spring mvc configuration with mysql using jdbc
spring mvc configuration with mysql using jdbc  hai I want to configure web mvc with mysql using jdbc template. when I submit values using registration form it will reflect on database which i was created earlier. send me code
mysql jdbc connectivity
mysql jdbc connectivity  i want to connect retrieve data from mysql using jdbc
How to connect to MySQL in JSP?
, You can use the Java JDBC code to connect to MySQL database in JSP page. Check the tutorial: Connect JSP with mysql Thanks...How to connect to MySQL in JSP?  How to connect to MySQL in JSP
Mysql connect
Mysql connect  i can have a mysql database file and mysql-connector-net .but i have not mysql database. how to connect vb.net thsis database.(C:\Documents and Settings\Admin\My Documents\VB.NET\Stock delna\STC.sql ). plz help me
How to connect mysql with jsp
How to connect mysql with jsp  how to connect jsp with mysql while using apache tomcat
unable to retrive the data from mysql using servlet using jdbc driver
unable to retrive the data from mysql using servlet using jdbc driver  Hi, i have a servlet program..to verify the login and redirect to correct... Connection con = null; String url = "jdbc:mysql://localhost:3306
mysql_connect arguments
mysql_connect arguments   How many arguments a mysql_connection function required to connect to the database?   ?mysql_connect? function... And if the given arguments are correct it will connect to the database and print
need help....how to connect and disconnect multiple databases(databases created in mysql) using java and my sql
need help....how to connect and disconnect multiple databases(databases created in mysql) using java and my sql  i am working on a project on deadlock in distributed transactions , and in that i am using my sql in java i need
Connect JSP with mysql
Connect JSP with mysql   ...; This query creates database 'usermaster' in Mysql. Connect JSP with mysql : Now in the following jsp code, you will see how to connect
ModuleNotFoundError: No module named 'connect-mysql'
ModuleNotFoundError: No module named 'connect-mysql'  Hi, My... 'connect-mysql' How to remove the ModuleNotFoundError: No module named 'connect-mysql' error? Thanks   Hi, In your python
ModuleNotFoundError: No module named 'connect-mysql'
ModuleNotFoundError: No module named 'connect-mysql'  Hi, My... 'connect-mysql' How to remove the ModuleNotFoundError: No module named 'connect-mysql' error? Thanks   Hi, In your python
How to connect to MySql Database from Servlet?
will learn the JDBC steps necessary to connect to the MySQL Database and execute the query.  Here we are using the MySQL jdbc driver for making... and then connect it through JDBC to show all the records present there. MySql Table
Prepared statement JDBC MYSQL
Prepared statement JDBC MYSQL  How to create a prepared statement in JDBC using MYSQL? Actually, I am looking for an example of prepared statement.   Selecting records using prepared statement in JDBC
Connect JSP with mysql
Connect JSP with mysql   ... how to connect to MySQL database from your JSP code. First, you need to create... tutorial of "How to connect to MySQL Database from JSP?": 2
How to Retrieve Excel data into mysql using type 2 JDBC-ODBC driver
How to Retrieve Excel data into mysql using type 2 JDBC-ODBC driver  Can any please help it is very urgent. I tried to read excel sheet using ODBC... to connect same DNS name in my colleague system also .So, this is the problem
How to download MySQL JDBC driver?
program. To connect to MySQL database from Java program we need JDBC Driver of MySQL...How to download MySQL JDBC driver?  Hi, What is JDBC Driver? How to download MySQL JDBC driver? Thanks   Hi, JDBC - Java database
JDBC Connection code to connect servlet with oracle.
JDBC Connection code to connect servlet with oracle.  JDBC Connection code to connect servlet with oracle
JDBC Video tutorial - How to update Data in a MySQL Database?
to MySQL Database using JDBC Create the Statement Object Construct the sql... the example program for updating the data into MySQL database using the JDBC driver...JDBC Beginners tutorial for updating the data into MySQL database The Java
how to connect jdbc
how to connect jdbc  package com.tcs.ilp.Try.Controller; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import
error call to undefined function mysql_connect
error call to undefined function mysql_connect  what is error call to undefined function mysql_connect
how to connect jsp to mysql - Java Beginners
how to connect jsp to mysql  I m new in Mysql and JSP i m ceating.java file using bean file for connectivity but i m not able to connect jsp... me hw to conncet jsp with mysql this is connection file package connect
jdbc connectivity to mysql tutorial
jdbc connectivity to mysql tutorial  here is complete jdbc connectivity to mysql tutorial for newbies. Person who don't even know how to install mysql and don't know about which driver to use can do with ease
JDBC Video tutorial - How to delete Data in a MySQL Database?
: Connect to MySQL Database using JDBC Create the Statement Object...JDBC Beginners tutorial for deleting the data into MySQL database... the developers to write program, which connects to the MySQL database using pure
JDBC Video tutorial - How to read Data from MySQL Database?
program, which connects to the MySQL database using pure type 4 JDBC driver... for reading the data from MySQL database using the JDBC driver. Check all...JDBC Beginners tutorial for reading the data from MySQL database
how to connect mySql drivers into eclipse(configuration)?
how to connect mySql drivers into eclipse(configuration)?  how to connect mySql drivers into eclipse(configuration)? I need the configuration in eclipse. what do i have to download from mySql and just downloading is enough or do
using Blob in jdbc - JDBC
using Blob in jdbc  Hi, I got an Exception when i was trying to insert one image into oracle 10g database the exception is Exception in thread..."); Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost
maven mysql jdbc driver
maven mysql jdbc driver  How to add the maven mysql jdbc driver dependency in the pom.xml file of a maven based application?   Hi, Its...;groupId>mysql</groupId> <artifactId>mysql-connector-java<
what is ment by jdbc and how to connect with database?
what is ment by jdbc and how to connect with database?  i want answer for this question

Ads