Rails3 mysql2 耙子错误
我正在使用 Rails3 运行 ruby 1.8.7。安装mysql2后(成功)我想创建数据库,但出现以下错误:
noname:addressDB clemens$ rake db:create
(in /.../addressDB)
rake aborted!
undefined method `errno' for #<Mysql2::Error:0x1024f21f0>
(See full trace by running task with --trace)
noname:addressDB clemens$
这里有什么建议吗?
i'm running ruby 1.8.7 with rails3. after installing mysql2 (successful) I want to create the dbs, but the following error occurs:
noname:addressDB clemens$ rake db:create
(in /.../addressDB)
rake aborted!
undefined method `errno' for #<Mysql2::Error:0x1024f21f0>
(See full trace by running task with --trace)
noname:addressDB clemens$
any advice here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我注意到我的数据库也有类似的问题(不完全是这个错误)。这是由于 MySQL 版本不正确造成的。我不得不降级到 MySQL 5.1,错误就消失了。
I noticed I was having similar issues on my databases (not this error exactly). It was due to an incorrect version of MySQL. I had to downgrade to MySQL 5.1 and the errors went away.