0
我無法連接mysql到rails,我試圖修改database.yml和gemfile,但沒有任何作品。請幫助。我無法連接mysql與rails
Rails環境配置
git:
version: git version 1.7.6.msysgit.0
ruby:
bin: C:/RailsInstaller/Ruby1.9.2/bin/ruby.exe
version: ruby 1.9.2p290 (2011-07-09) [i386-mingw32]
rails:
bin: C:/RailsInstaller/Ruby1.9.2/bin/rails.bat
version: Rails 3.1.1
過程
C:\Sites>cd demo
C:\Sites\demo>rake db:migration
rake aborted!
Incorrect MySQL client library version! This gem was compiled for 6.0.0 but the
client library is 5.0.27.
(See full trace by running task with --tracing)
我已經安裝的MySQL 5.5
'database.yml'的發佈內容和'rake db:create'的輸出 – davidb
任何顯示在終端中的錯誤也會有幫助。有時候mysql的gem沒有安裝,或者你沒有運行rake db:migrate。 – jstim
是否安裝了mysql?它運行嗎? –