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