similar to: Mysql::Error: Lost connection to MySQL server during query

Displaying 20 results from an estimated 10000 matches similar to: "Mysql::Error: Lost connection to MySQL server during query"

2006 Mar 25
4
Trouble Running my new controller
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; [code] Mysql::Error: Lost connection to MySQL server during query: SELECT COUNT(*) FROM categories [/code] What is wrong? Why does it lose connection to MySQL server? -- Posted via
2006 Jan 03
1
Virtual Hosts?
Well, I guess I''m successful because within a month of getting my very first application online (and it''s barely functional) I now have to get a second one up pretty quickly. Basically, I have a rails application "myFirstApp", and a hostname www.myfirstapp.com. Now I have a second rails app "mySecondRailsApp" and I need www.mysecondapp.com to peacefully
2006 Jan 11
2
validator to ensure two fields are different?
What validator can I use in a model to ensure that my :username field is different from my :password field? I''ve tried validates_exclusion_of :password, :in =>:username but I get a rails error "an object with the method include? is required must be supplied as the :in option of the configuration hash" Thanks! Gary
2006 Jan 19
5
reload controller with FCGI
since webrick does not need to run with FCGI how do you get a rails app in FCGI mode to reload the controller (since it caches in production). Is it simply a restart of apache ? adam
2006 Apr 21
1
"Lost connection to MySQL server" error
Have things running great on my local webrick. Decided to set things up on the local server and I get this error: Mysql::Error: Lost connection to MySQL server during query: SHOW FIELDS FROM users RAILS_ROOT: script/../config/.. So I thought it might be struggling to connect to mysql, so I tried with sockets instead of port 3306. No difference unfortunately. I can connect successfully to
2005 Dec 18
1
session temp files?
I''m running a simple WEBrick server for a small rails website. I probably get less than 100 hits per hour. I just looked in /tmp on the server and there are over 10,000 ruby_sess.* temp files containing: " hash{" flashIC:''ActionController::Flash::FlashHash{: @used{ They''ve piled up so much that I can''t even rm -f ruby*. Bash complains
2006 Apr 03
16
Dealing with Application error (Rails) in production
Hi all, Week 2 working with Ruby on Rails... I have a working app in development that is now throwing a generic, "Application error (Rails)" message in production. How do I deal with this so I can find more information about why the error is being thrown in production, but not in development? Thanks! -- Posted via http://www.ruby-forum.com/.
2006 Jan 21
4
acts_as_taggable clouds?
what is the easiest/established way to make a tag cloud using the acts_as_taggable plugin? any examples would be greatly appreciated! -A -- Posted via http://www.ruby-forum.com/.
2005 Jun 18
1
Running general purpose queries
Hi, I''m considering migrating my site from php to RoR. I''ve installed RoR gone through the onlamp tutorials and made the recipie/todo list sample sites and tinkered with a few of my own. I understand the examples that use models and scaffolding to map tables, but I''m having a little trouble understanding how to handle general purpose queries. A few people have
2005 Nov 18
2
Migrate Ubuntu Rails App to Fedora?
I developed a small RoR app on my Ubuntu laptop and I just tried to migrate it to my "production" box which is Fedora FC3. I moved the entire rails app. I received this error when I tried to get the first page: [2005-11-17 15:36:00] INFO WEBrick::HTTPServer#start: pid=32546 port=3000 192.168.0.61 - - [17/Nov/2005:15:40:01 EST] "GET /freesql HTTP/1.1" 200 0 - ->
2006 Jan 30
2
DamageControl
Is there anyone on this list running DamageControl on a Debian or a Windows system ? If so would you care to share how you accomplished this (details ... it''s all in the details) ? While I will still work through the problems I am encountering (it''s a great learning experience) I would still like to have a working instance of DamageControl to use in the meantime. I am
2006 May 04
3
Rubyonrails.org Website Blocked
Hi Everyone, This is basically an FYI because I don''t think there is much that can be done about it. I work at a DoD lab and up until very recently I had no problems at all getting to rubyonrails.org. All week long I have not been able to visit the site and I finally gave up and submitted a trouble call to our network help desk. I was told that the site was in a class B range
2006 Apr 01
1
Tuning for large number of directory entries?
I have been running a public MySQL server for over 4 years. The system was a 1GHz box with 256MB of RAM. MySQL puts each database into a seperate directory in a single "data" directory. Once the old system reached about 10K databases the connection times increased 10X or more. I attributed the speed problems to a possible filesystem limitation with a large number of files. That
2003 Mar 06
1
ext3 and indexed directories
I work with a MySQL installation containing several thousand databases. MySQL represents each database as a seperate sub-directory of the main MySQL data directory. As the number of databases increases it seems that the time to connect is increasing significantly and I believe this is probably due to the time necessary to search through the large number of directory entries. It has been
2002 Sep 05
1
EXT3 Corruption Question
Greetings Everyone, A group in my office is designing/integrating what I would loosly label as an "embedded system". In that, it performs a dedicated task and is not a general purpose workstation or server. It operates in a harsh environment, particularly a questionable power environment and they are extremely concerned about inadvertent shutdown and recovery. They were totally
2006 Apr 27
4
GD2 to Make Charts
I''m just getting started with GD2 and have successfully made a few dynamic PNGs. I need to make some fairly detailed line graphs on the fly and I know that GD2 is capable of what I want but I strongly suspect I''m reinventing the wheel badly. Are there gems or other projects that help creating complex charts? I''ve used GDChart in the distant past but I
2005 Dec 17
17
problems with quotes and escaping
First of all I''d like to say thanks for all the great work everyone has put into scriptaculous, I''m having a lot of fun playing with the framework, and easily moving into Web 2.0 territory. I''ve just hit a snag on my project though. So here''s my code: ... var newEvent= "<div
2006 Jan 04
9
Resizeable
Has anyone done any work on a "Resizeable" class they''d be willing to share? I''m looking to do some stuff that''ll need resizable divs, but I didn''t want to re-invent the wheel if I can avoid it. -Jerod _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
2006 Jan 25
2
how to define content charset?
I tried to define koi8-r charset in app/views/layouts/ like this: <head> <meta http-equiv="Content-Type" content="text/html; charset=koi8-r"> <title>Cpu: <%= controller.action_name %></title> <%= stylesheet_link_tag ''scaffold'' %> </head> But it doesn''t work. I suppose WEBrick already sent utf8 charset
2011 Dec 16
4
nil object Error
hi all, i am getting following error ,i can''t figure it out why and from where it is coming ? please help me out to resolved this error if anyone knows about this issue. i am using following env. O.S:Windows XP Ruby:ruby 1.8.7 (2011-02-18 patchlevel 334) [i386-mingw32] Rails:Rails 2.3.11 Gem:1.6.2 ActionView::TemplateError (You have a nil object when you didn''t expect