Please forgive me if this has been answered in another post. I’ve looked
around but couldn’t find a solution.
I bought the book “Agile Web D. with Rails” and think I’m going
to really like it. I went through the first chapter with no problems.
However, as I begin developing the database on page 57, I get a
Before updating scaffolding from new DB schema, try creating a table for
your model (Products)
I’ve changed all the parameters in the database.yml file 100 times
including the username, password, socket and taking the underscore out
of the databases it is connecting to.
My error logs read:
[4;36;1mProducts Columns (0.000000)^[[0m ^[[0;1mMysql::Error: Lost
connection to MySQL server during query: SHOW FIELDS FROM products^[[0m
I tried to do: gem install mysql
but it eventually errored and failed.
I’m running a box with FC 4, Mysql 4.1 and Ruby 1.0
Any help would be greatly appreciated, I’m not even sure where to start.