Newbie problem - unexpected MySQL error


#1

Hi,

I get this, when I try to load a view entry page:
Mysql::Error: Lost connection to MySQL server during query: SELECT *
FROM locations WHERE (locations.id = 8) LIMIT 1

When I run the query in an sql client it works perfectly (returning a
row).

Now, I know it does connect to the database, because it prints another
error when I set the database port to a wrong value. The error occurs
inside the log function of the abstract controller.

Any idea what might be causing it? Or even better, how I should debug it
myself?

Thanks :slight_smile:


#2

Try this:

http://wiki.rubyonrails.com/rails/pages/Mysql+Connection+Problems/