[英]Mysql and Ruby on Rails configuration in windows7 x86
I install the RailsInstaller downloading from this site http://railsinstaller.org/ and also install the mysqlInstaller downloading from this site http://dev.mysql.com/downloads/ . 我安装了从该站点http://railsinstaller.org/下载的RailsInstaller,还安装了从该站点http://dev.mysql.com/downloads/下载的mysqlInstaller。 Both I have installed in c:\\ drive.
两者都已安装在c:\\驱动器中。 I have also installed mysql driver from ruby command gem install mysql.
我还从ruby命令gem install mysql安装了mysql驱动程序。 Now I haven't Idea how to configure mysql in Ruby on Rails.
现在我还不知道如何在Ruby on Rails中配置mysql。 I have seen this answer MySQL driver for Rails in Windows 7 x64 they tell to replace libmySQL.dll but where to replace I didn't find such file.
我已经在Windows 7 x64中看到了这个答案, 用于Rails的MySQL驱动程序,他们告诉替换libmySQL.dll,但是在哪里替换我找不到这样的文件。 Does anyone have any Idea or solution about my problem?
有人对我的问题有任何想法或解决方案吗?
I had same problem. 我有同样的问题。 following solution worked for me
以下解决方案为我工作
Solution: the libmysql.dll file is located in the bin directory of your mysql installation. 解决方案:libmysql.dll文件位于mysql安装目录的bin目录中。 This file needs to be a copy of it in the Ruby\\bin directory.
该文件需要是Ruby \\ bin目录中的副本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.