Home  >  Article  >  Database  >  tomcat+mysql数据库的连接池配置_MySQL

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

WBOY
WBOYOriginal
2016-06-01 13:56:421232browse

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

Statement:
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