Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'host' from database.yml is ignored on create/drop/reset tasks #3

Open
anomaly256 opened this issue Jan 4, 2011 · 0 comments
Open

Comments

@anomaly256
Copy link

The 'host' option specified in database.yml is being ignored on the create/drop/reset tasks.

The fix is pretty simple, ie: for 'drop' change to this:

  host, user, password, database = config[:host], config[:user], config[:password], config[:database]
  `mysql #{host ? "-h #{host}" : ''} -u #{user} #{password ? "-p#{password}" : ''} -e "drop database #{database}"`

Also note I've specified the CORRECT handling of a mysql password on commandline (no space after -p) and altered config[:username] to reflect the ACTUAL config entry config[:user] both of which I notice still haven't been fixed here despite having an open ticket about it for some months and the fix being dead simple to implement...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant