Home > Database > Mysql Tutorial > body text

tomcat+mysql数据库的连接池配置_MySQL

WBOY
Release: 2016-06-01 13:56:42
Original
1231 people have browsed it

Tomcat

1)下载mm.mysql-2.0.14-bin.jar包,放在tomcat目录下的common/lib文件夹中

2)在tomcat目录下的conf/server.XML中的前加入(注意:全部大写的地方要替换成你自己的东西)

                                                                            factory                                  org.apache.commons.dbcp.BasicDataSourceFactory                                                                                                                  driverClassName                                      org.gjt.mm.mysql.Driver                                                                                                              url                                jdbc:mysql://localhost:3306/DATABASE_NAME?autoReconnect=true                                                                                                           username                                   DB_USERNAME                                                                               password                                 DB_PASSword                                                                                                              maxActive                                   100                  &nbs

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!