MySQL driver for Rails in Windows 7 x64

前端 未结 10 1637
长发绾君心
长发绾君心 2020-12-23 14:46

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.

!!!         


        
10条回答
  •  生来不讨喜
    2020-12-23 15:37

    I spent hours trying to get MySQL and Rails to play nicely on Windows (albeit XP, both 32 and 64-bit versions). I finally gave up since my production box was running Linux (on which Rails and MySQL play very nicely) and just used SQLite 3 for development. No headaches to get it working and it runs fast enough for development purposes.

    However, I did hear of some people that had luck replacing one of the DLLs provided by the gem with one provided by the official MySQL distribution. Also, some people simply didn't have this DLL at all which was causing problems. In the end, it didn't work for me, but hopefully you will have more luck.

提交回复
热议问题