Trouble Running my new controller


#1

I’ve got Apache2, MySql5 installed on fc5, and I got RoR installed and
set-up the database.yml file with correct
username/password, etc – but RoR keeps complaining that it keeps losing
connection;

Mysql::Error: Lost connection to MySQL server during query: SELECT
COUNT(*) FROM categories

What is wrong? Why does it lose connection to MySQL server?


#2

Maybe your need to upgrade your RoR MySQL client.
I don’t remember the details but I did it just after having problems
connection to MySQL from RoR and installed MySQL/Ruby with gem

Try gem install mysql


#3

Guest wrote:

Maybe your need to upgrade your RoR MySQL client.
I don’t remember the details but I did it just after having problems
connection to MySQL from RoR and installed MySQL/Ruby with gem

Try gem install mysql

thanks for your quick reply all this stuff seems a little less
impossible when you got good forums…

ok sigh… every step in setting this up seems to be met with problems
when i run the command your talking about i get the folling vauge error

[error]
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
[/error]

I dont understand how there could be a problem with the make file as i
was about to install ruby and ruby gems with no problems


#4

Guest wrote:

I had the same problem too…

Have a look here : http://www.ocsforums.com/showthread.php?t=132

I just removed the -mtune option (if I remember well)

Fantastic it worked!

Thank you so much for your feedback it was most helpful…

Note: in that link you just posted i did not edit the file i just called
the command the builds the make file and restarted the mysql server.
Back in business now. Thanks so much again!!!


#5

I had the same problem too…

Have a look here : http://www.ocsforums.com/showthread.php?t=132

I just removed the -mtune option (if I remember well)