Displaying 1 result from an estimated 1 matches for "numberofrecord".
2009 Feb 08
8
How to upload data using huge .sql file
Hi,
I am using Ruby - 1.8.6 and Rails- 1.2.6.
When I trying to upload data using the .sql file through my code
I got "Mysql::Error: Lost connection to MySQL server during query:
rollback;"
File size is 6 MB.
The code I have used is like:
numberOfRecord =
ActiveRecord::Base.connection.update(File.open(fileName).read)
Please let me know how I upload data using huge .sql file.
If anyone has any possible solutions or help on this problem it would be
appreciated very much.
Thank you
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~---...