怎么安装MYSQL5.0的JDBC驱动
2005-08-06 17:04
393 查看
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.
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.
相关文章推荐
- 怎么安装MYSQL5.0的JDBC驱动
- 怎么安装MYSQL5.0的JDBC驱动
- JAVA-数据库之MySQL与JDBC驱动下载与安装
- JavaEE JDBC 怎么加载驱动
- 怎么在Linux上安装打印机驱动
- Oracle JDBC驱动安装到Maven本地仓库
- oralce的jdbc驱动安装及jsp开发例子
- win8.1系统下PL2303驱动不能使用该怎么正确安装?
- win7系统电脑怎么添加打印机 不需驱动源程序就能安装打印机
- linux下使用JDBC需要安装驱动jar包
- 请问大侠maven怎么添加ms的jdbc驱动啊,1.6jdk
- 安卓手机驱动安装不上怎么办
- StreamSets 安装JDBC驱动指北
- debian 安装时硬件驱动缺失怎么办?
- 将Oracle JDBC驱动库安装到本地仓库
- SQL Server 2000 JDBC驱动的完整安装及测试说明
- SQL Server 2000 JDBC驱动的完整安装及测试说明
- 如何安装JDBC驱动以及更改mysql字符集
- JDBC的java驱动安装
- Oracle Jdbc驱动下载及安装本地maven仓库