
rake db:create uses different connection information
Reported by Postmodern | June 17th, 2010 @ 06:04 PM
I'm getting MySQL connection errors when running rake
db:create
. However, I do not get connection errors when
running rails console
.
$ RAILS_ENV="test" rails console
>> User.all
=> [ ]
$ RAILS_ENV="test" rake db:create
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
[datamapper] Created database 'project_test'
I am connecting to a MySQL server running at 127.0.0.1 on port 3306.
Comments and changes to this ticket
-
Martin Gamsjaeger (snusnu) October 24th, 2010 @ 02:27 PM
- State changed from new to unconfirmed
Is this still an issue with dm-rails-1.0.4 ?
-
Martin Gamsjaeger (snusnu) October 27th, 2010 @ 06:53 AM
- State changed from unconfirmed to resolved
Just tested that and didn't see any problems.
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »