Start New Discussion within our Web Development Community

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

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

There should be a tasks for doing that in SQL.

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 article has been dead for over six months. Start a new discussion instead.