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

Member Avatar for LastMitch

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.