Re: add JDBC driver for MySQL to apache-tomcat-5.5.17
- From: "cp" <e-blade@xxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 8 Jul 2006 00:00:09 +0200
Well if you follow java protocol with the JDBC driver (assuming MySQL
Connector/J) then your URL should be:
url="jdbc:mysql://staj?autoReconnect=true"/>
"banq_man" <hristo.matev@xxxxxxxxx> wrote in message
news:1152295911.167596.155030@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dudes,
I have tried to add JDBC driver for MySQL to apache-tomcat-5.5.17,but
unsuccesfully.
In the materials i have read , it was adviced to add a Resource tag in
$CATALINA_HOME/conf/server.xml.
Database i want to access is called "staj "
So here are the tags i added to $CATALINA_HOME/conf/server.xml:
<Context path="/staj" docBase="staj"
debug="5" reloadable="true" crossContext="true">
</Context>
<Resource name="jdbc/staj" auth="Container"
type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="root" password=""
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql:///staj?autoReconnect=true"/>
Could you tell me where i get wrong!?
.
- References:
- add JDBC driver for MySQL to apache-tomcat-5.5.17
- From: banq_man
- add JDBC driver for MySQL to apache-tomcat-5.5.17
- Prev by Date: add JDBC driver for MySQL to apache-tomcat-5.5.17
- Next by Date: Apache Derby and Eclipse 3.2
- Previous by thread: add JDBC driver for MySQL to apache-tomcat-5.5.17
- Next by thread: Apache Derby and Eclipse 3.2
- Index(es):