Windows 7 x64 中 Rails 的 MySQL 驱动程序 [英] MySQL driver for Rails in Windows 7 x64

查看:62
本文介绍了Windows 7 x64 中 Rails 的 MySQL 驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在新安装的 Windows 7 机器上连接 MySQL 数据库时遇到问题.我在尝试迁移数据库时收到此错误.

I've got problem with connecting to MySQL database on my freshly installed Windows 7 machine. I'm getting this error when I try to migrate my database.

!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please install 
the mysql gem and try again: gem install mysql.
rake aborted!
193: %1 is not valid Win32 application - C:/Ruby/lib/ruby/gems/1.8/gems/mysql-2.8.1-x86-mswin32/lib/1.8/mysql_api.so

我目前已经安装

ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
mysql version 5.0.86  for Win64
gem 1.3.1
mysql-2.8.1-x86-mswin32

推荐答案

我的同事在 Windows 7 上运行 rails 时遇到了类似的问题.他不得不用 InstantRails.

My colleague had a similar problem while running rails on Windows 7. He had to replace the libmySQL.dll (in the PATH) with the one from InstantRails.

这篇关于Windows 7 x64 中 Rails 的 MySQL 驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆