在过去的 1 天里,我只尝试得到这个,
C:\dev\man>rake db:create --trace
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Execute db:load_config
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:create
rake aborted!
Bad file descriptor
C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/active_record/c
onnection_adapters/mysql2_adapter.rb:312:in `query'
C:/Ruby193/lib/ruby/gems/1.9.1/gems/mysql2-0.2.6-x86-mingw32/lib/active_record/c
onnection_adapters/mysql2_adapter.rb:312:in `execute'
gem install mysql2 -v '0.2.6' # 成功
什么是坏文件描述符?
我跟着这里,Ruby on rails : rake aborted bad file descriptor didn't work
我很不确定这两个文件
C:\Program Files\Mysql\Mysql Server 5.6\lib\libmysql.dll C:\Ruby193\bin\libmysql.dll
我在 Windows 7、rails 3.2.12 和 mysql 5.6、ruby 1.9.3
请帮忙!