You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Andrius <ob...@takas.lt> on 2001/11/03 17:41:59 UTC

MySQL datasource configuration in server.xml

Hello,
I'm newbie and i need help. can anyone tell me how to configure JNDI
resource in server.xml for database connection factory.
DB: MySQL; TC: 4.0.1).
This is an example of such config for Hypersonic:
        
        <Resource name="jdbc/EmployeeAppDb" auth="SERVLET"
                    type="javax.sql.DataSource"/>
          <ResourceParams name="jdbc/EmployeeAppDb">
            <parameter><name>user</name><value>sa</value></parameter>
            <parameter><name>password</name><value></value></parameter>
            <parameter><name>serverName</name>
              <value>192.168.0.66</value></parameter>
            <parameter><name>databaseName</name>
              <value>telisweb</value></parameter>
            
          </ResourceParams>

How to write it for MySQL?

Thanks for any response.

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>