Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=47235
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 25 May 2009 10:18:13 +0000 (10:18 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 25 May 2009 10:18:13 +0000 (10:18 +0000)
Remove use of auto-reconnect flag from MySQL examples

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@778375 13f79535-47bb-0310-9956-ffa450edef68

modules/jdbc-pool/doc/jdbc-pool.xml
webapps/docs/jndi-datasource-examples-howto.xml

index a7e01ec..02083d8 100644 (file)
         
             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=&quot;root&quot; 
               password=&quot;password&quot; 
               driverClassName=&quot;com.mysql.jdbc.Driver&quot;
-              url=&quot;jdbc:mysql://localhost:3306/mysql?autoReconnect=true&quot;/&gt;
+              url=&quot;jdbc:mysql://localhost:3306/mysql&quot;/&gt;
 
     
     </source>
index c0689ae..a365aa7 100644 (file)
@@ -240,15 +240,12 @@ resource to your <a href="config/context.html">Context</a>.</p>
          --&gt;
     
     &lt;!-- 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.
          --&gt;
 
   &lt;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"/&gt;
+               url="jdbc:mysql://localhost:3306/javatest"/&gt;
 
 &lt;/Context&gt;
 </source>