db:migrate problem -- Can't connect to local MySQL server through socket
I'm trying to install redmine-1.2.1 and I get the following problem:
$ rake db:migrate RAILS_ENV="development"
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I can manually connect to the database from the command line just fine. I'm baffled.
Anyone have a clue?
$ cat config/database.yml
$ mysql redmine_proj -u redmine -p secret
Fetching: mysql-2.8.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed mysql-2.8.1
1 gem installed
Installing ri documentation for mysql-2.8.1...
No definition for ...
RE: db:migrate problem -- Can't connect to local MySQL server through socket - Added by Aaron Evans over 7 years ago
full trace for db:migrate is attached
trace.txt - db:migrate --trace (13.7 KB)