I have Rails 3 app on Justhost server. I am still working on it, but sometimes I get this error :
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) (Mysql2::Error)
I checked similair questions: here
I tried this command mysqladmin variables | grep socket
Get this error
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'ecotec11'@'localhost' (using password: NO)'
Don't understand how that could happen. Because I haven't changed database.yml file for long time.
I checked my databases are in good condition, users and passwords are the same.
I tried to restart server with touch tmp/restart.txt
no luck in here!