在启动rails服务器时,我可能会在mysql中遇到一些错误
今天我安装了ruby和rails gems,一切都很成功 但当我尝试使用命令rails服务器启动服务器时,我遇到了一些错误,下面列出了它,请帮助我在启动rails服务器时,我可能会在mysql中遇到一些错误,mysql,ruby-on-rails,ruby,ruby-on-rails-3,Mysql,Ruby On Rails,Ruby,Ruby On Rails 3,今天我安装了ruby和rails gems,一切都很成功 但当我尝试使用命令rails服务器启动服务器时,我遇到了一些错误,下面列出了它,请帮助我 C:\Ruby200-x64\project>rails server C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `requir e': 193: %1 is not a valid Win32 application. - C:/Rub
C:\Ruby200-x64\project>rails server
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.13/lib/mysql2.rb:8:in `requir
e': 193: %1 is not a valid Win32 application. - C:/Ruby200-x64/lib/ruby/gems/2
.0.0/gems/mysql2-0.3.13/lib/mysql2/mysql2.so (LoadError)
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.13/lib/mysql2.rb
:8:in `<top (required)>'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
untime.rb:72:in `require'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
untime.rb:72:in `block (2 levels) in require'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
untime.rb:70:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
untime.rb:70:in `block in require'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
untime.rb:59:in `each'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
untime.rb:59:in `require'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.r
b:132:in `require'
from C:/Ruby200-x64/project/config/application.rb:7:in `<top (required)>
'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co
mmands.rb:76:in `require'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co
mmands.rb:76:in `block in <top (required)>'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co
mmands.rb:73:in `tap'
from C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co
mmands.rb:73:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
C:\Ruby200-x64\project>rails服务器
C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.13/lib/mysql2.rb:8:in`requirer
e':193:%1不是有效的Win32应用程序。-C:/Ruby200-x64/lib/ruby/gems/2
.0.0/gems/mysql2-0.3.13/lib/mysql2/mysql2.so(加载错误)
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/mysql2-0.3.13/lib/mysql2.rb
:8:in`'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
时间.rb:72:in'require'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
untime.rb:72:in‘要求中的块(2级)’
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
截至时间。rb:70:in‘each’
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
截止时间:rb:70:in‘block in require’
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
截至时间。rb:59:in‘each’
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler/r
截至时间。rb:59:in‘require’
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/bundler-1.3.5/lib/bundler.r
b:132:在'require'中
来自C:/Ruby200-x64/project/config/application.rb:7:in`
'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co
mmands.rb:76:in'require'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co
mmands.rb:76:in'block in'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co
mmands.rb:73:in'tap'
来自C:/Ruby200-x64/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/co
mmands.rb:73:in`'
从箱子/轨道:4:in“require”
从箱子/轨道:4:in`'
尝试执行rake数据库:创建
命令来创建数据库并粘贴错误(如果有)。
在那里我们可以找到有意义的错误消息您可以将stacktrace编辑为更可读的形式吗?您是否成功安装了
mysql2
gem和mysql服务器、mysql客户端?可能与此处重复;还有一个可能是你在32位机器上运行,你想安装一个64位的mysql Gehey我不能启动我的服务器,除了如何rake db?实际上你的mysql rails配置有问题。因此,如果您尝试创建数据库,它将显示问题所在。这样我们可以进一步得到解决方案。