Ngan
Not a member
Ngan's latest activity
Wednesday, February 16 2011
-
Ngan commented at 7:41 PMHere's a patch that I did in my Rails app to fix this:
module ActiveRecord module ConnectionAdapters class MysqlAdapter private def connect_wit...
Friday, February 11 2011
Thursday, January 13 2011
-
- Title changed from Cannot execute mysql "LOAD DATA LOCAL INFILE" query after using verify_active_connections! to Mysql "LOAD DATA LOCAL INFILE" does not work after reconnect
-
Ngan commented at 7:34 PMAwesome! I confirmed that it fixed it for me as well. Any case someone can make a patch for this?
Jonathan, do update on how it goes with mysql2.
Thanks!
Tuesday, January 11 2011
-
Ngan commented at 6:04 PMI'm using Rails 2.3.8, so it's on the mysql gem (not mysql2). I've also updated to the latest gem version of mysql, and still get the same problem.
Monday, January 10 2011
-
- Title changed from Cannot execute mysql "LOAD DATA INFILE" query after using verify_active_connections! to Cannot execute mysql "LOAD DATA LOCAL INFILE" query after using verify_active_connections!
-
Ngan commented at 10:27 PMI've gone through all the MySQL documentation and made sure everything has permissions. You'll notice in my console output, the first I do the LOAD DATA LOCAL I...
Saturday, January 08 2011
-
Ngan commented at 8:19 AMActual console output
ruby-1.8.6-p399 :003 > ActiveRecord::Base.connection.execute("LOAD DATA LOCAL INFILE '/tmp/test.infile' INTO TABLE users") [Sat Jan 08 00... -
Ngan commented at 7:24 AM
> ActiveRecord::Base.connection.disconnect! > ActiveRecord::Base.verify_active_connections! > ActiveRecord::Base.connection.execute("LOAD DATA INFILE '/tmp/som... -
Ngan created the ticket at 7:23 AMHi, I'm on Rails 2.3.8, but I think this problem affects Rails 3.x as well.
After using ActiveRecord::Base.verify_active_connections! after the mysql going away...