similar to: "Lost connection to MySQL server" error

Displaying 20 results from an estimated 20000 matches similar to: ""Lost connection to MySQL server" error"

2006 Jan 12
6
Mysql::Error: Lost connection to MySQL server during query
I have been very VERY frustrated for the past week trying to solve a seemingly spurious problem with my Windows XP SP2 box with Ruby 1.8.2/Rails 1.0.0/MySQL 5.0.16 or 4.1.15 (yes, I tried both) installed running against a remote MySQL server that was either 3.23 or 4.1 (4.1.15 to be exact--we finally matched them both up to make sure that wasn''t the problem). So I post it here (as
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 Sep 18
2
Datebocks and EdgeRails
Hello, I am having trouble trying to use the Datebooks Engine with Edge Rails. Has anybody try with it? It seems that the problem has something with loading the layout, and complaints about the number of arguments. I will thank any help or guide. Thank you very much. ========================= I have copied the error I get ArgumentError wrong number of arguments (2 for 1) RAILS_ROOT:
2006 Apr 03
3
Lost Connection to MySql during query.
hi all, I am getting an error when trying to connect to a mysql server on my ''production'' linux server. The rails app works fine when connecting to the ''development'' mysql on my windows development server. I have looked at the following wiki: http://wiki.rubyonrails.com/rails/pages/Mysql+Connection+Problems/ and I installed the mysql gem, however this does
2005 Nov 16
4
What happened to mysql connection?
I''ve been using Rails for more than six months and until today I had no problem with mysql connection. It''s a Mac OS X 10.4 box having rails installed and updated by gem. I use a remote mysql server no local instance installed. Here''s my config: development: adapter: mysql database: hdchat host: 10.0.0.1 username: webuser password: test: adapter:
2006 Feb 08
5
Mysql::Error: Lost connection to MySQL server during query:
Hi, I am having Mysql connection problem for my first AddressBook application (which I took it from http://www-128.ibm.com/developerworks/linux/library/l-rubyrails/) I have gem installed the latest ruby, rails, lighttpd, fastcgi, mysql-4.1.14 on linux. Everything looks good. When I do: mysql -h localhost -u test -ptest -D AddressBook mysql> SELECT COUNT(*) FROM contacts; +----------+ |
2006 Apr 26
8
Newbie: Hide div I''ve just show using link_to_remote?
I''m using link_to_remote to show details for an item that''s clicked. I''d like to hide the div with the next click, or alternatively have a "Hide" link within my div. What is the best way to accomplish this? Here''s my existing code: <% for task in @mytasks %> <div class="rowFormat"> <%= link_to_remote(
2006 Jan 05
5
Lost connection to Mysql
I''m trying to set up RoR on a laptop and having all sorts of troubles. I''m running XP SP2, I did a quick install of appache/mysql using Xampp, which worked fine. I grabbed the latest windows install of ruby and rails, installed it ok and got it running. The moment I try to run a rails page that queries a database, it fails every time, and I get the following error:
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 May 01
3
Make a checkbox checked based on a condition?
I have a series of checkboxes in a form generated as follows: <% for user in @active_users %> <p><%= user.firstname + " " + user.surname%> <%= check_box ''assigned_tasks'', ''user_id'', {:index => user.id}, user.id, nil %></p> <% end %> I''d like to have one of them selected when user.id is equal to the
2010 Mar 05
1
WEBrick 500 error only with https
I have an application i''m installing on my application server. I''ve been using WEBrick and for now i''d like to just keep using it working in prototype development mode. This works fine on my development machine using both http and https, where the host is ''localhost'' (ports 3000,3001). It also works fine on the application server http port 3000. The
2008 Jun 17
1
problem when changing default sqlite to mysql
hi all, i installed rails 2.1.0 just now before i was working with rails 1.2.6. when i try to check the application enviroment link in the index page of the application it gave me " MissingSourceFile in Rails/infoController#properties no such file to load -- sqlite3RAILS_ROOT: D:/RadRails/Workspace/Varsha " here i am using win XP, no sqlite installed. i have
2006 Mar 22
4
Newbie - populating select list from db
Can''t seem to find an example of this anywhere - how do I populate a select list in a form from a database? I have a form to create a new task. The task is for a client, so there should be a select list populated from my clients table. I thought this would work: <%= select ''task'', ''client_id'', Client.find_all, "id", "name"
2006 Jun 23
1
Rate is not a class
Here''s one I haven''t seen before I have a model "section.rb" as follows: class Section < ActiveRecord::Base ###Lot of common stuff end class Normal < Section end class Faq < Section has_many :faq_categories, :order => :position end class Rate < Section has_many :rate_tables end Now I''ve just added the Rates class and it works just
2006 Mar 08
6
GD error...
Hi! I''m new in ruby/rails programming and i have a small problem. I have installed InstantRails 1.0 (for Ruby/Rails/Mysql/Apache envs) and I''m trying to make a small app working. I''m using auth_generator for making a login page/users admin pages... and I have a problem when trying to CHANGE the avatar for the user. I have the following error: MissingSourceFile
2006 Jun 01
3
Requiring /lib files in a cross-platform way.
Hi. When you have library foo.rb in your Rails project /lib directory, I notice that on some platforms - e.g. Windows with WEBrick as a server - you can require it by simply: require ''lib/foo'' However on other platforms - e.g. Debian with Lighttpd server via FastCGI - this does not work, and you need to specify RAILS_ROOT explicitly, like this: require
2006 Aug 10
5
Major security vulnerability in the latest Rails 1.1.5
Hi, I think there is still a major vulnerability exists in the latest Rails 1.1.5. The problem is in the routing.rb file and safe_load_paths method. Because of the erroneous regexp it is possible to perform a DOS attack on any rails application. To reproduce: 1. start your application 2. use this url: http://localhost:3000/debug Routing module will load standard debug.rb script which stops a
2006 Jun 05
1
file_column permissions
this is getting frustrating... i installed file_column without a hitch for the first time to just play around with. using the exact same steps as before, i try to use it with one of my actual applications, and i get "permission denied" errors. i figure there might be some conflict with my application so just for kicks i do the exact same thing i did the first time to test
2006 Mar 21
3
Newbie - ActiveRecord relationships
So I''ve worked through Agile Web Development with Rails and I''m now trying my first little app to get into the swing of things. Its a task tracking app where people can create tasks and assign them to others, and also log time against the tasks. I''m having trouble working out the model relationships. This is what I''ve got so far, but its not right as
2006 Apr 07
2
minor issue with mysql/ruby - major headache
i hope its minor, i''m running lighty1.4x ruby 1.8x mysql 5.0.1x and i can see my rails app on 127.0.0.1:3000 but if i try run a app with database connection (scaffold) i get this error NameError in Message#index uninitialized constant Mysql RAILS_ROOT: ./config/.. Application Trace | Framework Trace | Full Trace