Skip to content

Netbeans / JRuby Tip: Setting up Rails database.yml for Derby

November 15, 2007

Tip o the day for getting JRuby/Rails running with Derby:

Your database.yml needs to look something like this:

    adapter: jdbc
    driver: org.apache.derby.jdbc.ClientDriver
    username: fred
    password: password
    url: jdbc:derby://localhost:1527/ruby_dev

Make sure you copy derbyclient.jar to your Jruby install directory (e.g. ~netbeans-installdir/ruby1/jruby-1.0.2/lib)

Powered by ScribeFire.

Comments are closed.

%d bloggers like this: