Re: add JDBC driver for MySQL to apache-tomcat-5.5.17



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!?



.