Topic: 在TOMCAT里jsp怎么与MySQL相连呀!!

  Print this page

1.在TOMCAT里jsp怎么与MySQL相连呀!! Copy to clipboard
Posted by: lodestar
Posted on: 2003-12-14 21:53

是不是要下载个驱动呀?
在那里下呀,装到那里呀?
有没有那位达人说清一点呀!

2.Re:在TOMCAT里jsp怎么与MySQL相连呀!! [Re: lodestar] Copy to clipboard
Posted by: 九佰
Posted on: 2003-12-15 09:02

需要mysql的驱动,放到tomcat的lib下面
然后再jsp中使用jdbc联接

请使用论坛的搜索功能查找

3.Re:在TOMCAT里jsp怎么与MySQL相连呀!! [Re: lodestar] Copy to clipboard
Posted by: lodestar
Posted on: 2003-12-15 12:57

谢谢版主了!!!

4.Re:看tomcat的文档啊,关于data source 和jndi那部分. [Re: lodestar] Copy to clipboard
Posted by: nothing
Posted on: 2004-01-04 01:36

看tomcat的文档啊,关于data source 和jndi那部分.

5.Re:在TOMCAT里jsp怎么与MySQL相连呀!! [Re: lodestar] Copy to clipboard
Posted by: 爱上妖精的狐狸
Posted on: 2004-01-13 16:44

下一个mysql的驱动mm.mysql-2.0.14-bin.jar
连接串用jdbc:mysql://localhost:3306/Ryan?useUnicode=true&characterEncoding=GBK
Connection conn = DriverManager.getConnection(dbString,use,pass);


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923