Displaying 20 results from an estimated 60000 matches similar to: "Lost connection to MySQL server during query (Mysql::Error)"
2005 Dec 28
1
Windows "Lost connection to MySQL server during query"
With previous versions of active record (prior to version 1.13.2), one
could simply comment out the "require ''active_record/vendor/mysql411''"
line in mysql_adapter.rb to fix this problem when you weren''t (and/or
couldn''t) use the native mysql bindings.
However, this line no longer exists, and I''m stuck on getting any sort
of applicatino
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 Jul 28
2
Problems connecting to remote mysql db
Hi,
I am having a problem connecting to a remote mysql db and I can''t
figure out what the problem is. When I try to connect I get the error:
getaddrinfo: no address associated with hostname.
I have looked all over for clues as to what that means but I haven''t
been able to find anything that helps. I have no problems connecting
to the database with php and with the mysql query
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 Jun 14
6
Lost Connection to MySQL
Error Message: MyMysql::Error: Lost connection to MySQL server during query:
SHOW FIELDS FROM products
Running Fedora 5, using available Red Hat modules and latest version of Rails.
This problem just appeared. I had been enjoying going through the tutorial "Depot"
when it started displaying this problem. With phpMyAdmin I am able to access the
depot_development data base containing
2006 Mar 29
5
MySQL losts connection, can''t refer to User
Hi
Another problem here. After the upgrade to 1.1 both rails and engines,
my app on windows crashes very often on requests. It can''t refer to User
model or losts connection to mysql. It appears like 2-3 times per 10
requests.
Eg.
Mysql::Error: Lost connection to MySQL server during query: UPDATE
sessions SET `data` =
2006 May 09
5
Solaris migration error:Lost connection to MySQL server
We have installed rails 1.1.2 and Ruby 1.8.4 on solaris. When we attempt
to
run the initial migration we get the following error:
Mysql::Error: Lost connection to MySQL server during query: SELECT
version FROM schema_info
/web/server/pkgs/ruby-1.8.4/lib/ruby/gems/1.8/gems/activerecord-1.14.2/lib/active_record/connection_adapters/abstract_adapter.rb:120:in
`log''
2007 Oct 30
1
Merb - Losing connection to MySQL
Hello,
Once or twice a day I''m losing connection to MySQL and this error is
generated:
Mysql::Error: Lost connection to MySQL server during query: INSERT INTO
pictures (`content_type`, `name`, `size`, `thumbnail`, `updated_at`,
`pictureable_type`, `description`, `pictureable_id`, `filename`, `height`,
`user_id`, `parent_id`, `created_at`, `width`) VALUES(''image/jpeg'',
2006 Apr 30
3
MySQL connection problems on Dreamhost
To all fellow Dreamhosters out there...
Sometimes my app mysteriously loses its connection to the database,
resulting in a big ugly "Application Error (Rails)" page. Usually
refreshing the page makes it go away, but not today. :-(
In production.log I see this:
MysqlError (Lost connection to MySQL server during query):
Any idea why this happens? It''s rather intermittent
2006 Nov 04
0
ActiveRecord, insert and not auto-incremented primary keys...
Hi,
After playing while with ActiveRecord, I''m surprised it isn''t easier to insert data into a table whose primary key is not auto-incremented by the database server.
The following code...
---------------------------------------
-- MySQL database "test"
---------------------------------------
CREATE TABLE gardens
(
code integer NOT NULL,
name
2006 Jun 18
0
Thread safety in activerecord(?), connection lost to mysql server - simple code sample provided
Hello all,
I know that this issue has come up before, but I read all the previous posts
regarding thread safety and haven''t come up with a solution. I''m spawning
lots of threads in a backgroundrb worker that each do things with
activerecord models. I get the connection lost to mysql server exception
about 90% of the time, with my process working by sheer luck the other 10%.
2006 Jul 20
1
file_column - assigning with an actual file rather than a multipart
Hi there,
I''m using the wonderful file_column and have struck an issue that
someone might have seen before.
My images already sit on the server. So, instead of passing a
multipart message I''m sending a file object.
Something like...
f = File.new("public/gallery_images/builder.png")
p = Product.find_first
p.image = f
p.save
On the save I recieve an error which
2006 Jul 24
0
Error: NameError (uninitialized constant Mysql)
Hi
I am getting this error on my localhost in a project I started work on. It was working properly until sometime back. I am not what broke this because I had to do some copy paste from some other project to make it deploy on site5.
NameError (uninitialized constant Mysql): d:/ruby/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:123:in `const_missing''
2006 Jan 15
2
Please help - Rails hanging on mysql connection
Trying to get Rails and mysql running on OS X, and I''m a Nuby.
Everything ran smoothly when I first installed, but after rebooting
things were out of whack. I finally got back into mysql after
re-installing, and at first when I tried to connect with Rails/Ruby I
got a message that my client was not up to date. So after reading some
info online, I set my mysql passwords with
2006 Jul 31
0
Issues with has_many, belongs_to and dependency settings
I have 2 models SmsAddress & OutboundSmsAtom
SmsAddress {
has_many :other_objects, :dependency => :nullify
}
OutboundSmsAtom {
#note this object also "belongs_to" other objects if that matters
belongs_to :this_object
}
Whenever I try to destroy an object of type ThisObject, which at the time
has 0 "children" OtherObjects I get the following type of
2006 Aug 08
2
Problem with plurals, migrations?
Hi,
Ruby 1.8.4
Rails 1.1.4
Windows XP Pro
I''m hitting an issue with migrations that I suspect relates to
pluralization. Here''s the migration:
class Hardware < ActiveRecord::Migration
def self.up
create_table :hardware do |h|
h.column :vendor, :string, :limit => 32
h.column :model, :string, :limit => 32
end
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 Aug 10
2
Software caused connection abort
Hi Zed or anyone that is also looking at Mongrel,
Just want to report something that, although doesn''t crash mongrel, is
rather annoying.
I am running the latest Mongrel 0.3.13.3 - ruby version on cygwin
(yeah, poor me). When I start mongrel_rails with
ActiveRecord::Base.allow_concurrency = true in environment.rb, I see a
lot of
"Error sending file
2006 Jul 09
2
Error using sqlite3
Hello, I''m trying to use sqlite3 and I''ve followed the steps here :
http://wiki.rubyonrails.org/rails/pages/HowtoUseSQLite
However I get the error above (uninitialized constant API) when trying
to run a migration.
I''m under Windows XP, using cygwin, the sqlite3.dll file is on the lib
directory of my rails app (filemon, an utility that reports file access
attempts
2006 Jul 31
2
ambiguous column name in has_many :through
In my application model I have three classes: Accounts, Projects, and Items
class Accounts < ActiveRecord::Base
has_many :items, :through => :projects, :source => :items
has_many :late_items, :class_name => ''Item'', :through => :projects,
:conditions => [''due_on < ?'', Time.now], :source => :items
end
class Projects <