0

Hi
i m just learning rails and i want to import my sql data to rails ..
i have created database and i had run rake to create shema etc...
i m using windows 7
thx

3
Contributors
2
Replies
27
Views
3 Years
Discussion Span
Last Post by stevanity
0

i have created database and i had run rake to create shema etc...

There should be a tasks for doing that in SQL.

0

If you have your data as an .sql script, you can use MySQL's own tools to import the data.

just do,

mysql -u user -p database_name < data.sql

on your terminal.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.