cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeroen Reijn <>
Subject Re: Cocoon-MySQL
Date Tue, 20 May 2008 14:11:17 GMT
Hi Matthew,

which version of Cocoon are you using? 2.1.X? or 2.2?

For 2.1, you need to add the dburl like on the wiki page:

You do not need to copy paste files. Just set the correct JDBC url:


do change 'YourDatabaseName' to the correct database. What happens if 
you try to access the db from cocoon? Does it give a response?



Matthew Monkan wrote:
> I've found many helpful pages on the web and on this forum, but I am still
> having trouble connecting to a MySQL database I created on my computer.
> I did an install of MySQL with all defaults...just breezed through. I'm
> trying to do the Chapter 8 DB sample as explained in the Moczar and Aston
> book. I created a DB called "abc" and it's stored wherever MySQL  defaults
> to when you create a DB.
> I've done all the steps explained in up
> to what I'm questioning below:
> I don't really understand the syntax I need or what folder or files Cocoon
> needs to access for DB access. (I've never used DBs before.) Can someone
> tell me if the <dburl> is correct?
>     <jdbc name="abc" logger="">
>       <pool-controller min="5" max="10"/>
>       <auto-commit>false</auto-commit>
>       <dburl>C:\Program Files\MySQL\MySQL Server 5.0\data\abc</dburl>
>       <user>root</user>
>       <password/>
>     </jdbc>
> In the website posted above they show something like
> <dburl>jdbc:mysql://localhost:3306/YourDatabaseName?autoReconnect=true</dburl>
> I've tried jdbc:mysql://localhost:8080/abc and
> jdbc:mysql://localhost:8080/cocoon/abc (I'm using Tomcat on that port) but
> this doesn't work. Do I need to copy and paste files from the MySQL folder
> or fix my <dburl>?
> Thanks.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message