tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrius" <...@takas.lt>
Subject MySQL datasource configuration in server.xml
Date Sat, 03 Nov 2001 16:41:59 GMT
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:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message