Kyle Kyle - 1 month ago 8x
Ruby Question

Syntax error on rake db:schema:dump

I try to connect mysql with ruby, I follow this video

but on 23:30 in video, I got error with

rake db:schema:dump
I have no idea, this is my error:

irb(main):016:0> rake db:schema:dump
SyntaxError: (irb):16: syntax error, unexpected tLABEL
rake db:schema:dump
from /usr/local/lib/ruby/gems/2.3.0/gems/railties- `start'
from /usr/local/lib/ruby/gems/2.3.0/gems/railties- `start'
from /usr/local/lib/ruby/gems/2.3.0/gems/railties- `console'
from /usr/local/lib/ruby/gems/2.3.0/gems/railties- `run_command!'
from /usr/local/lib/ruby/gems/2.3.0/gems/railties- `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'


At the outset, get out of irb console.

rake is a build program, similar to make. Just go to your project directory on terminal and run your rake commands like:

~/apps/myproject$ rake db:schema:dump