Title: setting up database.xml file help

Hi,

Please can someone give me a hand setting up database.xml file. I'm gettting a -- org.exolab.castor.jdo.DatabaseNotFoundException:

database name = testdb
type of database = mysql
no password
the database is on my local machine.

I'm not sure how to set up the driver URL --- can someone explain this to me.

<database name="testdb" engine="mysql">
        <driver url="jdbc:mysql://localhost/castordb" class-name="org.gjt.mm.mysql.Driver">
                <param name="user" value="root"/>
                <param name="password" value=""/>
        </driver>
        <mapping href="mapping.xml"/>
</database>

help much appreciated
Jamie

Reply via email to