我是新来的回报率从Django的到来,回报率是不容易的,我Django的,所以我想请你帮我回报率:无法连接到MySQL
当我尝试做rake db:migrate
或rake features
或任何关于rake
我看到this
有3件事我不明白:为什么不RoR连接到MySQL?为什么我看到这个耙错误?以及为什么我看到ansicoon错误...我已经安装了它3次(但这不是一个重要的错误,所以如果你不知道如何修复它,那很好)我还安装了最新版本或今天耙
我有导轨3,Windows XP的32位,SP3,我安装使用railsinstaller
ROR的database.yml
development:
adapter: mysql
database: selvista
username: root
pool: 5
timeout: 5000
# 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: &test
adapter: mysql
database: selvista_test
username: root
pool: 5
timeout: 5000
production:
adapter: mysql
database: selvista_prod
username: root
pool: 5
timeout: 5000
cucumber:
<<: *test
的Gemfile
source 'http://rubygems.org'
gem 'rails', '3.0.6'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'mysql'
gem 'rake', '0.9.2.2'
#cucumber and some other gems
gem 'cucumber'
gem 'database_cleaner'
gem 'cucumber-rails'
gem 'capybara'
gem 'rspec', '2.8'
gem 'rspec-rails', '2.8'
gem 'launchy'
gem 'spork'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19', :require => 'ruby-debug'
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end
如果你需要看到任何其他文件告诉我,我习惯于Django你有5个文件,你可以添加其他文件,如果你需要的话,这里有轨道上的红宝石我有很多文件夹和文件,我还不知道哪些文件很重要,哪些文件不重要
你正在运行的Ruby 1.8.7。除非你有特殊原因,否则你应该运行最新版本。我看到你使用了[RailsInstaller](http://railsinstaller.org)。最新版本的RailsInstaller附带Ruby 1.9.2。但我推荐[RubyInstaller](http://rubyinstaller.org),然后只需要'gem install rails'和其他宝石。 – danneu 2012-01-29 23:26:10