简体   繁体   English

Rails3的mysql2耙错误

[英]Rails3 mysql2 rake error

i'm running ruby 1.8.7 with rails3. 我正在使用rails3运行ruby 1.8.7。 after installing mysql2 (successful) I want to create the dbs, but the following error occurs: 安装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$

any advice here? 有什么建议吗?

I noticed I was having similar issues on my databases (not this error exactly). 我注意到我的数据库上有类似的问题(完全不是这个错误)。 It was due to an incorrect version of MySQL. 这是由于MySQL版本不正确所致。 I had to downgrade to MySQL 5.1 and the errors went away. 我不得不降级到MySQL 5.1,错误消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM