aimee (sermoa) wrote in mandrake_users,
aimee
sermoa
mandrake_users

MySQL problems

Since upgrading to Mandriva 2006, MySQL doesn't seem to be behaving itself. When I first start the computer and try to connect I get Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2). I manage to get around that by doing service mysqld restart. That's a little bit tedious, but I can cope with it. It says Stopping MySQL: [Failed] and then Starting MySQL: [OK] so that's good enough.

The real interesting one is this allows me to connect from command line, and through my PHP web applications. But when I try through Ruby on Rails I get (for example) Mysql::Error: Lost connection to MySQL server during query: SELECT COUNT(*) FROM tasks. The database is not corrupt and I can run that through mysql command line with no problems.

Any ideas?
  • Post a new comment

    Error

    default userpic

    Your IP address will be recorded 

  • 3 comments