程序人生  
我们站在同一起跑线上,让我们共同努力,共同奋进,愿您的人生因程序而美好!
日历
<2009年3月>
22232425262728
1234567
891011121314
15161718192021
22232425262728
2930311234
统计
  • 随笔 - 0
  • 文章 - 38
  • 评论 - 8
  • 引用 - 0

导航

留言簿(2)

文章分类

文章档案

常用Web 站点

搜索

  •  

最新评论

 

1、下载mysql for jdbc driver.
   http://dev.mysql.com/downloads/connector/j/3.1.html
MySQL Connector/J is distributed as a .zip or .tar.gz archive containing
the sources and class files as well as a class-file only "binary" .jar
archive named "mysql-connector-java-3.1.10-bin.jar".

2、解压缩下载的文件,如:mysql-connector-java-3.1.10.zip

You will need to use the appropriate gui or command-line utility to un-archive
the distribution (for example, WinZip for the .zip archive, and "tar" for
the .tar.gz archive).

3、mysql for jdbc driver有两种安装发式:

Once you have un-archived the distribution archive,
you can install the driver in one of two ways:

  第一种方法:将com和org两个目录下所有文件和目录拷贝到任何地方,比如将com和org两个目录下所有文件和目录拷贝到任何地方,比如d:\mysqlforjdbc下
            设置classpath=.;d:\mysqlforjdbc;%classpath%

Either copy the "com" and "org" subdirectories and all of their contents
to anywhere you like, and put the directory holding the "com" and "org"
subdirectories in your classpath, or...

  第二种方法:将mysql-connector-java-3.1.10-bin.jar拷贝到一个地方,如:D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib下
            设置classpath=.;D:\Program Files\Apache Software Foundation\Tomcat 5.0\common\lib\mysql-connector-java-3.1.10-bin.jar;%classpath%

     或直接把mysql-connector-java-3.1.10-bin.jar拷贝到%JAVA_HOME%\jre\lib\ext下
     %JAVA_HOME%就是J2SDK的安装目录,如我的为D:\j2sdk1.4.2_06就拷贝到D:\j2sdk1.4.2_06\jre\lib\ext下

(调试java程序使用)

Put mysql-connector-java-3.1.10-bin.jar in your classpath, either by adding the
FULL path to it to your CLASSPATH enviornment variable, or putting it
in $JAVA_HOME/jre/lib/ext.

posted on 2007-11-29 20:27 蔡华林 阅读(4819) 评论(1)  编辑  收藏 所属分类: mysql
评论:
  • # re: 怎么安装MYSQL5.0的JDBC驱动[未登录]  alan Posted @ 2009-03-08 09:42
    謝謝了喲,我也正在弄mysql  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航:
 
 
Copyright © 蔡华林 Powered by: 博客园 模板提供:沪江博客