1,105,406 Community Members

importing sql into rails

Member Avatar
asaidi
Junior Poster in Training
88 posts since Jul 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
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

LastMitch
Deleted Member
 
0
 

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

There should be a tasks for doing that in SQL.

Member Avatar
stevanity
Posting Whiz
304 posts since Oct 2010
Reputation Points: 4 [?]
Q&As Helped to Solve: 28 [?]
Skill Endorsements: 0 [?]
 
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.

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
View similar articles that have also been tagged: