This one time, at band camp, Jamie De Wet said:
JDW>Please can someone give me a hand setting up database.xml file. I'm gettting
JDW>a -- org.exolab.castor.jdo.DatabaseNotFoundException:
JDW>
JDW>database name = testdb
JDW>type of database = mysql
JDW>no password
JDW>the database is on my local machine.
JDW>
JDW>I'm not sure how to set up the driver URL --- can someone explain this to
JDW>me.
JDW>
JDW><database name="testdb" engine="mysql">
JDW> <driver url="jdbc:mysql://localhost/castordb"
JDW>class-name="org.gjt.mm.mysql.Driver">
JDW> <param name="user" value="root"/>
JDW> <param name="password" value=""/>
JDW> </driver>
JDW> <mapping href="mapping.xml"/>
JDW></database>
Jamie,
The above configuration is correct. Now all you need is the MySQL database
accessible using the username=root with a blank password and a client
application that sets the database name to testdb like so:
_jdo.setDatabaseName( "testdb" )
If this doesn't help, let's see the stack trace that's occurring and a
sample of the client code where it's failing.
Bruce
--
perl -e 'print unpack("u30","<0G)U8V4\@4VYY9&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev