#1328 ✓resolved
Postmodern

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

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 »

Pages