Showing posts with label jdbc connectivity with mysql. Show all posts
Showing posts with label jdbc connectivity with mysql. Show all posts

Monday, 10 March 2014

java database connectivity code with mysql

jdbc connectivity with mysql  

For MySQL 5.1
For Windows users only

Pre-Requisites:
  1. jdk1.6.0_11(Works with previous versions of JDK) can be downloaded from here
  2. MySQL Server 5.1
  3. mysql-connector-java-3.0.11-stable-bin.jar or Download mysql Connector/J


java connectivity with mysql projects,

Environment Variables:
Enter Variable name and Variable value which is mentioned below.
Variable name:
JAVA_HOME
Variable value:
C:\Program Files\Java\jdk1.6.0_11

Variable name:
PATH
Variable value:
C:\Program Files\Java\jdk1.6.0_11\bin

Variable name:
CLASSPATH
Variable value:
.;C:\MysqlDriver\lib\mysql-connector-java-3.0.11-stable-bin.jar

Simple java program to connect Mysql with java using JDBC

java connectivity with mysql example,

java database connectivity code with mysql example


Connect Java with MS SQL Server Tutorial For MS SQL Server 2005

 

Connect Java with Oracle 10g Tutorial