推薦:怎樣在tomcat5中配置mysql數(shù)據(jù)源_MySQL
來源:懂視網(wǎng)
責(zé)編:小采
時(shí)間:2020-11-09 17:21:43
推薦:怎樣在tomcat5中配置mysql數(shù)據(jù)源_MySQL
推薦:怎樣在tomcat5中配置mysql數(shù)據(jù)源_MySQL:Tomcat tomcat5中配置mysql數(shù)據(jù)源: 一、配置環(huán)境變量: softe version:tomcat5.0.12/mysql4.1.7/mysql_driver--- mysql-connector-java-3.1.4-beta-bin.jar mysql驅(qū)動程序可從www.m
導(dǎo)讀推薦:怎樣在tomcat5中配置mysql數(shù)據(jù)源_MySQL:Tomcat tomcat5中配置mysql數(shù)據(jù)源: 一、配置環(huán)境變量: softe version:tomcat5.0.12/mysql4.1.7/mysql_driver--- mysql-connector-java-3.1.4-beta-bin.jar mysql驅(qū)動程序可從www.m
Tomcat
tomcat5中配置mysql數(shù)據(jù)源:
一、配置環(huán)境變量:
softe version:tomcat5.0.12/mysql4.1.7/mysql_driver---
mysql-connector-java-3.1.4-beta-bin.jar
|
mysql驅(qū)動程序可從www.mysql.com官方網(wǎng)站下載
路徑:
tomcat5在d:\myweb\tomcat5;
mysql在C:\Program Files\MySQL\MySQL Server 4.1
|
Path(在原來的基礎(chǔ)上加上):
d:\myweb\tomcat5\bin;d:\myweb\jdk1.4;d:\myweb\
jdk1.4\bin;
d:\myweb\tomcat5\common\lib\servlet-api.jar;C:\Program Files\
MySQL\MySQL Server4.1\bin
CLASSPATH:d:\myweb\tomcat5\common\lib\servlet-api.jar;d:\myweb\
tomcat5\common\lib\jsp-api.jar
JAVA_HOME:d:\myweb\jdk1.4
CATALINA_HOME:d:\myweb\tomcat5
|
二、建立測試數(shù)據(jù)庫
在mysql中建立一個(gè)forumdb數(shù)據(jù)庫,同時(shí)創(chuàng)建一個(gè)表member如下:
create database forumdb;
create table member
(
id int,
name varchar(6)
);
|
然后插入兩條測試數(shù)據(jù)如下:
insert into member values(1,"zhang");
insert into member values(2,"wang");
|
至此,數(shù)據(jù)庫準(zhǔn)備完畢。
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
推薦:怎樣在tomcat5中配置mysql數(shù)據(jù)源_MySQL
推薦:怎樣在tomcat5中配置mysql數(shù)據(jù)源_MySQL:Tomcat tomcat5中配置mysql數(shù)據(jù)源: 一、配置環(huán)境變量: softe version:tomcat5.0.12/mysql4.1.7/mysql_driver--- mysql-connector-java-3.1.4-beta-bin.jar mysql驅(qū)動程序可從www.m