Try this:
http://wiki.rubyonrails.com/rails/pages/Mysql+Connection+Problems/
On 12/16/05, Mumin <spikeballs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> 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 :)
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>