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

Recommended Answers

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

There should be a tasks for doing that in SQL.

Jump to Post

All 2 Replies

Member Avatar

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.