public static void main(String[] args) throws Exception {
PoolProperties p = new PoolProperties();
- p.setUrl("jdbc:mysql://localhost:3306/mysql?autoReconnect=true");
+ p.setUrl("jdbc:mysql://localhost:3306/mysql");
p.setDriverClassName("com.mysql.jdbc.Driver");
p.setUsername("root");
p.setPassword("password");
username="root"
password="password"
driverClassName="com.mysql.jdbc.Driver"
- url="jdbc:mysql://localhost:3306/mysql?autoReconnect=true"/>
+ url="jdbc:mysql://localhost:3306/mysql"/>
</source>
-->
<!-- url: The JDBC connection url for connecting to your MySQL dB.
- The autoReconnect=true argument to the url makes sure that the
- mm.mysql JDBC Driver will automatically reconnect if mysqld closed the
- connection. mysqld by default closes idle connections after 8 hours.
-->
<Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="javauser" password="javadude" driverClassName="com.mysql.jdbc.Driver"
- url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>
+ url="jdbc:mysql://localhost:3306/javatest"/>
</Context>
</source>