LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-02-2005, 11:11 PM   #1
Neruocomp
Member
 
Registered: Oct 2004
Distribution: Slackware, CentOS
Posts: 135

Rep: Reputation: 15
RubyonRails losing mysql connection


OK so I've gone through a lot just to get ruby and rails installed on
RHEL 4 64bit, but it works, kinda. I'm building a software management
system and decied to try out ruby on rails. Anyways here is a bit of
history of what i've done

Here is the mysql command that made one of the tables

CREATE TABLE users(
id INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
staffid INTEGER(20) UNSIGNED NOT NULL DEFAULT '00000000',
name VARCHAR(35) NOT NULL DEFAULT '',
title VARCHAR(10) NOT NULL DEFAULT '',
dept VARCHAR(20) NOT NULL DEFAULT '',
institute VARCHAR(50) NOT NULL DEFAULT '',
office VARCHAR(20) NOT NULL DEFAULT '',
email VARCHAR(40) NOT NULL DEFAULT '',
phone VARCHAR(11) NOT NULL DEFAULT '',
created_on TIMESTAMP(14) NOT NULL,
updated_on TIMESTAMP(14) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY staffid_key (staffid)
) ENGINE=InnoDB COMMENT='User information';

Put the database info in config/database.yml
And ran:
ruby script/generate scaffold user

And now when I go to www.example.com/manage/user I get
Lost connection to MySQL server during query: SELECT COUNT(*) FROM
users

I've also have ran gem install mysql -- --with-mysql-config

So whats going on?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Losing Connection on wlan heinrisch Linux - Wireless Networking 1 10-25-2005 08:42 PM
losing connection with static ip redss Linux - Networking 1 01-29-2005 05:17 AM
losing network connection Ian Fleeton Linux - Networking 3 05-21-2003 07:44 AM
losing network connection tangle Linux - Hardware 0 12-17-2002 12:46 PM
Losing Connection syxxpac023 Linux - Networking 0 10-11-2001 07:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration