wampp 或 xampp:如何升级到 mysql 6?
我使用的是 Windows XP Pro,我被告知在我的 ruby on Rails 应用程序中使用 mysql2 gem 。除非安装了 mysql 6,否则 mysql 2 gm
将无法工作。 wamp 和 xampp 的最新版本中不包含 mysql 6!那么如何安装mysql 6...我正在使用xampp,我不想安装mysql,然后安装apache,然后安装php,然后安装phpmyadmin,我想使用像wamp或xampp这样具有整个包的东西,所以我想知道你是否知道如何升级到 mysql 6
还有一件事,mysql 6 是否得到广泛支持?我想在一些共享托管上尝试我的应用程序,所以我不想安装 mysql2
进行开发,并在生产中安装 mysql
只是因为托管提供商不支持 mysql 6
当我运行 rake db:create 时我看到:
rake aborted! incorrect mysql client library version! this gem was compiled for 6.0.0 but the client library is 5.5.12
I'm on windows xp pro, I've been told to use mysql2 gem
in my ruby on rails app. mysql 2 gm
wont work unless you have mysql 6 installed. wamp and xampp do not have mysql 6 included in their latest versions! so how to install mysql 6...I'm using xampp and I do not want to install mysql then apache then php then phpmyadmin, i want to use something that has the whole package like wamp or xampp so I'm wondering if you know how to upgrade to mysql 6
and one more thing, is mysql 6 widely supported? i want to try my app on some shared hosting so i don't want to install mysql2
for development and mysql
in production just because the hosting providers doesn't support mysql 6
When i run rake db:create
i see:
rake aborted! incorrect mysql client library version! this gem was compiled for 6.0.0 but the client library is 5.5.12
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我通过下载[32位的mysql Connector/C 6.0.2的压缩版本][4]并从
mysql-connector-c-noinstall-复制
libmysql.dll
解决了这个错误6.0.2-win32-vs2005\lib到
C:\RailsInstaller\Ruby1.9.2\bin
i have solved this error by downloading [the zipped version of mysql Connector/C 6.0.2 for 32 bit][4] and copying
libmysql.dll
frommysql-connector-c-noinstall-6.0.2-win32-vs2005\lib
to
C:\RailsInstaller\Ruby1.9.2\bin
mysql 5.5.20 是最新的稳定版本...我使用 5.5.0 和 5.1,mysql2 工作正常
mysql 5.5.20 is the latest stable version...i use 5.5.0 and 5.1 and mysql2 works fine