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.

Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=447246

怎么安装MYSQL5.0的JDBC驱动的更多相关文章

  1. 图解如何安装MySQL5.0

    如何安装MySQL5.0数据库.. mysql-5.5.50-winx64下载地址: http://www.jb51.net/softs/363920.html 我的电脑因为提前安装了.所以需要卸载一 ...

  2. 在Fedora8上安装MySQL5.0.45的过程

    本来想安装最新的5.6.13-1版本,下载下来后,依赖的包rpmlib无处下载,无法只得作罢.从Foreda8的安装光盘中找到了以下文件: mysql-5.0.45-4.fc8.i386.rpm my ...

  3. Linux下编译安装mysql-5.0.45.tar.gz

    安装环境:VMware9(桥接模式) + Linux bogon 2.6.32-642.3.1.el6.x86_64(查看linux版本信息:uname -a) 先给出MySQL For Linux ...

  4. 在Fedora10上安装MySQL5.0.18,告捷!

    又一次安MySQL了,为什么又呢,因为前面成功那次算配置,即配置Fedora10自带的MySQL,这个还不算自己安装的,所以有必要再安装一次,以后还装也有可能,换操作系统,换MySql版本都可能这样做 ...

  5. 手动安装mysql-5.0.45.tar.gz

    Linux下编译安装 安装环境:VMware9(桥接模式) + Linux bogon 2.6.32-642.3.1.el6.x86_64(查看linux版本信息:uname -a) 先给出MySQL ...

  6. Ubuntu下安装CUDA8.0及nvidia驱动

    参考:https://blog.csdn.net/qq_35379989/article/details/80147630 cuda的历史版本下载地址:https://developer.nvidia ...

  7. 使用8.0版本jdbc驱动连接数据库操作

    转自:https://blog.csdn.net/qq_41734885/article/details/80562815 首先,我居然不能用navicat客户端连接上mysql8.0数据库报1251 ...

  8. CentOS安装GlassFish4.0 配置JDBC连接MySQL

    转自:http://linux.it.net.cn/CentOS/course/2014/0724/3319.html 版本glassfish-4.0.zip 1.解压,拷贝到指定安装路径   unz ...

  9. Redhat_AS5下安装MySQL5.0总结

    一.引言 使用Linux也有几年时间了,由于公司要做radius服务器用用到MySQL.从网上找了些资料. 二.安装Mysql 1.下载MySQL的安装文件 安装MySQL需要下面两个文件: MySQ ...

随机推荐

  1. Rime 鼠须管 配色方案

    android: name: "安卓/Android" author: "Patricivs ipatrickmac@me.com" text_color: 0 ...

  2. shutdown命令用法

    首先我们先创建一个txt文件,添加shutdown -r -f -t 0 ,文件点击另存为,选择所有类型,保存格式为“重启.bat”文件. 说明:shutdown命令用法: /r         关闭 ...

  3. Form表单中的action路径问题,form表单action路径《jsp--->Servlet路劲问题》这个和上一个《jsp--->Servlet》文章有关

    Form表单中的action路径问题,form表单action路径 热度5 评论 50 www.BkJia.Com  网友分享于:  2014-08-14 08:08:01     浏览数44525次 ...

  4. SCWS分词扩展在WINDOWS下的安装方法

    安装之前先确认您是否拥有主机的安装权限,否则无法进行安装,安装步骤如下: 1. 根据您当前用的 PHP 版本,下载相应已编译好的 php_scws.dll 扩展库. 目前支持以下版本   [PHP-4 ...

  5. YII2 Model 类切换数据库连接

    配置多数据库: return [ // ... 'components' => [ // ... 'db' => [ 'class' => 'yii\db\Connection', ...

  6. Ubuntu14.04 LTS更新源

    Ubuntu14.04 LTS更新源 不同的网络状况连接以下源的速度不同, 建议在添加前手动验证以下源的连接速度(ping下就行),选择最快的源可以节省大批下载时间. 首先备份源列表: sudo cp ...

  7. CF459B Pashmak and Flowers (水

    Pashmak and Flowers Codeforces Round #261 (Div. 2) B. Pashmak and Flowers time limit per test 1 seco ...

  8. app的meta

    <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> < ...

  9. getRow()方法

    getRow :不是返回行数,而是返回当前是哪一行

  10. wordpress不用插件实现Pagenavi页面导航功能

    Pagenavi 是一个很好的功能,现在 WordPress 博客一般都是使用 WP-Pagenavi 插件来实现,但是如果插件一多的话整个wordpress效率就降低了,我们力求用尽量少的插件来实现 ...