PDA

View Full Version : MySQL connection error


sacobra
April 23rd, 2006, 11:04 PM
Hi

I'm new to Ruby on Rails. I have MySQL 4.1.13 installed.
I created a new table and model and controller for that. When I try to view the http://localhost:3000/book/new, I get the following page

Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM books

What could be going wrong?

Regards,

rob
April 24th, 2006, 01:49 AM
Try executing:

gem install mysql

To make sure you have the appropriate MySQL drivers installed.