Mysql

From Resin 3.0

(Difference between revisions)
Jump to: navigation, search
Line 11: Line 11:
 
       <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type>
 
       <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type>
 
       &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;''username''&lt;/user&gt;
       &lt;password&gt;<var>password</var>&lt;/password&gt;
+
       &lt;password&gt;''password''&lt;/password&gt;
 
     &lt;/driver&gt;
 
     &lt;/driver&gt;
 
   &lt;/database&gt;
 
   &lt;/database&gt;

Revision as of 05:10, 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>''username''</user>
      <password>''password''</password>
    </driver>
  </database>

</web-app>
Personal tools