Error When Trying to Run Rake Command

Discussion in 'Site & Server Administration' started by NaSh123, Jul 22, 2010.

  1. #1
    Ruby Version 1.8.4
    Rails Version 2.3.5

    I'm trying to install Redmine and when I get to the step of running:
    RAILS_ENV=production rake db:migrate

    I end up with an error that says:
    rake aborted!
    syntax error on line 8, col 10: ` encoding: utf8'

    My DB config reads:
    production:
    adapter: mysql
    database: r_redmine
    host: localhost
    username: r_redmine
    password: *********
    encoding: utf8

    Any idea what's wrong? Much Appreciated!
     
    NaSh123, Jul 22, 2010 IP
  2. NaSh123

    NaSh123 Peon

    Messages:
    1,298
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Just upgradd to Ruby 1.8.7 any help would be appreciated.
     
    NaSh123, Jul 23, 2010 IP
  3. theredsheep

    theredsheep Active Member

    Messages:
    65
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    95
    #3
    What version of MySQL?
    What OS is this running on?
    Is your database set for utf8 character set?

    Those are the only things I can think of to start debugging with.
     
    theredsheep, Jul 23, 2010 IP
  4. NaSh123

    NaSh123 Peon

    Messages:
    1,298
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the help, the problem was my password contained a quote and it was breaking the code past that point. Silly mistake on my part.
     
    NaSh123, Jul 28, 2010 IP