Mysql
From Resin 3.0
(Difference between revisions)
Line 11: | Line 11: | ||
<type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type> | <type>com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource</type> | ||
<url>jdbc:mysql://localhost:3306/<var>dbname</var></url> | <url>jdbc:mysql://localhost:3306/<var>dbname</var></url> | ||
− | <user> | + | <user>''username''</user> |
− | <password> | + | <password>''password''</password> |
</driver> | </driver> | ||
</database> | </database> |
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>