#880 ✓resolved
Martin Gamsjaeger (snusnu)

adapter connection options incompatible with most database.yml files

Reported by Martin Gamsjaeger (snusnu) | June 3rd, 2009 @ 03:45 PM

Most database.yml files out there get generated / or are already present with the following options

database: name_of_db
username: user_name

but 0.10.0 needs

path: name_of_db
user: user_name

when using 'database' instead of 'path' one hits a nullpointer at

http://github.com/datamapper/dm-core/blob/de9da83b16a19bc24c344ca67...

when using 'username' instead of 'user' dm always tries to connect with the root user, and the following error is displayed:

Access denied for user 'root'@'localhost' (using password: YES)

This is at least confirmed for mysql and postgres

Maybe it's a good idea to support both variants, since this won't "break" all existing database.yml files out there

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Attachments

Pages