Mysql

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
(New page: * See [http://www.mysql.com/products/connector-j/index.html mysql.com Connector/J] <b>WEB-INF/resin-web.xml</b> <code><pre> <web-app xmlns="http://caucho.com/ns/resin"> <database...)
 
Line 1: Line 1:
 
* See [http://www.mysql.com/products/connector-j/index.html mysql.com Connector/J]
 
* See [http://www.mysql.com/products/connector-j/index.html mysql.com Connector/J]
 +
* See [http://caucho.com/resin/doc/config-database.xtp Resin Database Documentation]
  
 
<b>WEB-INF/resin-web.xml</b>
 
<b>WEB-INF/resin-web.xml</b>
Line 8: Line 9:
 
     &lt;name&gt;jdbc/mysql&lt;/jndi-name&gt;
 
     &lt;name&gt;jdbc/mysql&lt;/jndi-name&gt;
 
     &lt;driver&gt;
 
     &lt;driver&gt;
       &lt;type&gt;com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource&lt;\
+
       &lt;type&gt;com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource&lt;/type&gt;
/type&gt;
+
 
       &lt;url&gt;jdbc:mysql://localhost:3306/<var>dbname</var>&lt;/url&gt;
 
       &lt;url&gt;jdbc:mysql://localhost:3306/<var>dbname</var>&lt;/url&gt;
 
       &lt;user&gt;<var>username</var>&lt;/user&gt;
 
       &lt;user&gt;<var>username</var>&lt;/user&gt;

Revision as of 05:09, 8 February 2008

WEB-INF/resin-web.xml

<web-app xmlns="http://caucho.com/ns/resin">

  <database>
    <name>jdbc/mysql</jndi-name>
    <driver>
      <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type>
      <url>jdbc:mysql://localhost:3306/<var>dbname</var></url>
      <user><var>username</var></user>
      <password><var>password</var></password>
    </driver>
  </database>

</web-app>
Personal tools