[root@li35-175 blog]# rake db:create; rake aborted! (): could not find expected ':' while scanning a simple key at line 10 column 3
Tasks: TOP => db:create => db:load_config (See full trace by running task with --trace)
development: adapter: mysql2 database: blog pool: 5 username:root encoding:utf8 host:localhost password:***
这样的。。
# MySQL. Versions 4.1 and 5.0 are recommended.
#
# Install the MYSQL driver
# gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
# gem 'mysql2'
#
# And be sure to use new-style password hashing:
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html
default:&default
adapter: mysql2
encoding: utf8
reconnect: false
pool: 5
username: root
password:yaoqiang
socket: /var/run/mysqld/mysqld.sock
# host: 127.0.0.1
# port: 3306
development:
<<: *default
database: rabel_development
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: rabel_test
root@localhost:~/rabel# RAILS_ENV=production bundle exec rake db:setup
rake aborted!
Psych::SyntaxError: (): could not find expected ':' while scanning a simple key at line 11 column 1
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/application.rb:60:in parse'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/application.rb:56:in
block in raw_configuration'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/application.rb:56:in yield'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/application.rb:56:in
raw_configuration'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/application.rb:64:in global_configuration'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/application.rb:32:in
configuration'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/application.rb:42:in each'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/application.rb:36:in
load'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro.rb:23:in load'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/figaro-1.1.0/lib/figaro/rails/railtie.rb:5:in
block in class:Railtie'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:36:in call'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:36:in
execute_hook'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:45:in block in run_load_hooks'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:44:in
each'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/activesupport-4.2.0/lib/active_support/lazy_load_hooks.rb:44:in run_load_hooks'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/railties-4.2.0/lib/rails/application.rb:147:in
run_load_hooks!'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/railties-4.2.0/lib/rails/application.rb:95:in instance'
/usr/local/rvm/gems/ruby-2.0.0-p247/gems/railties-4.2.0/lib/rails/railtie.rb:123:in
config'
/root/rabel/config/application.rb:16:in <class:Application>'
/root/rabel/config/application.rb:10:in
module:Rabel'
/root/rabel/config/application.rb:9:in <top (required)>'
/root/rabel/Rakefile:4:in
require'
/root/rabel/Rakefile:4:in <top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
eval'
/usr/local/rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in `
帮我看下是什么问题 整个是我的错误信息 藐视不是空格的问题吧?