db:migrate problem -- Can't connect to local MySQL server through socket
Added by Aaron Evans about 13 years ago
I'm trying to install redmine-1.2.1 and I get the following problem:
$ rake db:migrate RAILS_ENV="development"
(in /home/alaskaair/qa-site/redmine-1.2.1)
rake aborted!
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?
gem 1.4.2
rails (2.3.11)
rake (0.8.7)
mysql (2.8.1)
$ cat config/database.yml
development:
adapter: mysql
database: redmine_proj
host: localhost
username: redmine
password: secret
encoding: utf8
$ mysql redmine_proj -u redmine -p secret
--ok
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 ...
Replies (1)
RE: db:migrate problem -- Can't connect to local MySQL server through socket - Added by Aaron Evans about 13 years ago
full trace for db:migrate is attached