Displaying 2 results from an estimated 2 matches for "hockey_develop".
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
2009 Aug 06
20
Changing from database sqlite3 to mysql - windows
Hi Guys
I''d like to know how to change from using sqlite3 to mysql. I''m
running windows xp. What is the command that I must type under my
application folder? How to I log into the mysql database afterwards?
My database.yml file contents at the moment are:
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development:
adapter: sqlite3