当前位置: 技术问答>java相关
mysql配置问题?
来源: 互联网 发布时间:2015-08-01
本文导语: 谁能给一个jsp与mysql配置的完全方案。 包括如何安装mysql数据库,配置mysql驱动,jsp访问mysql等等! 有文档更好! | 1.download mysql from www.mysql.com and install it 2.download resin2.1.3 from http://www.c...
谁能给一个jsp与mysql配置的完全方案。
包括如何安装mysql数据库,配置mysql驱动,jsp访问mysql等等!
有文档更好!
包括如何安装mysql数据库,配置mysql驱动,jsp访问mysql等等!
有文档更好!
|
1.download mysql from www.mysql.com and install it
2.download resin2.1.3 from http://www.caucho.com/resin/ and unzip it to c:resin
4.run c:resinbinsetup.exe and then httpd (test if it's working by http://localhost:8080)
5.open resin.conf under c:resinconf
6.find sth like this
jdbc/test
javax.sql.DataSource
5.you neednt to change this, just remeber you will change the setting only if you change your mysql driver or usrname and pwd.
com.caucho.jdbc.mysql.Driver is attached with resin.
6.copy this file to c:resindoc
/***************test.jsp***********/
/**************ending**************/
7.http://localhost:8080/test.jsp
now you may see sth like
%localhost% root ........
8.do remeber your jdk is installed with CLASSPATH correctly set.
good luck!
2.download resin2.1.3 from http://www.caucho.com/resin/ and unzip it to c:resin
4.run c:resinbinsetup.exe and then httpd (test if it's working by http://localhost:8080)
5.open resin.conf under c:resinconf
6.find sth like this
jdbc/test
javax.sql.DataSource
5.you neednt to change this, just remeber you will change the setting only if you change your mysql driver or usrname and pwd.
com.caucho.jdbc.mysql.Driver is attached with resin.
6.copy this file to c:resindoc
/***************test.jsp***********/
/**************ending**************/
7.http://localhost:8080/test.jsp
now you may see sth like
%localhost% root ........
8.do remeber your jdk is installed with CLASSPATH correctly set.
good luck!