Jim_Weir
(Jim Weir)
September 16, 2006, 5:54pm
1
I upgraded my box from FC4 to FC5, now when I visit the url for my app I get,
Application error (Rails)
This is the production log file,
Errno::ENOENT (No such file or directory - /tmp/mysql.sock):
/usr/lib/ruby/gems/1.8/gems/activerecord-1.14.4/lib/active_record/vendor/mysql.rb:104:in
`initialize'
MySQL is up and running, everything was fine on FC4...
This is my database.yml
production:
adapter: mysql
database: sales
username: myuser
password: mypw
host: localhost
Jim
Ross_Riley
(Ross Riley)
September 16, 2006, 9:18pm
2
It could be that the location of the mysql socket has changed.
do a locate mysql.sock and see what you find. If it has gone to
another location either add the socket to your database config or
symlink the old location to the new one.
ross
Pratik1
(Pratik)
September 16, 2006, 10:52pm
3
It should be /usr/lib/mysql/mysql.sock if I remember correctly.
-Pratik
Chris_Hall
(Chris Hall)
September 18, 2006, 11:43am
4
on my fc5 system, it's at /var/lib/mysql/mysql.sock
Pratik1
(Pratik)
September 18, 2006, 11:49am
5
Oops..my bad. It's /var of course.
Thanks,
Pratik