Can't connect to local MySQL server through socket
Posted by: tarscher
Posted on: 2007-10-01 05:32:00
Hi all,
When I try a rake db:migrate I get a 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)' error. When I type mysql in my console I get the same error. (I can access the mysql database I want to migrate with phpmyadmin)
Someone has a clue how I can solve this.
my databse.yml looks like this
production:
adapter: mysql
database: team_production
username: jantjeje
password: ****
host: mysql.jantjeje.dreamhosters.com
Some knows whats wrong,
Regards