rails 4 mysql2 gem错误的MySQL客户端库版本!这个gem编译为5.5.30,但客户端库是5.6.19

时间:2014-07-28 16:26:47

标签: ruby-on-rails-4 mysql2

在生产中部署时,我收到此错误,我不明白从5.5.30到哪里来了......但是我在本地(oSX)和远程(Debian)卸载了gem并重新安装了它...所以它应该用最新的库编译.5.6.19

这里安装了MySQL版本......

在Debian上

         mysql -u root -p -e 'SHOW VARIABLES LIKE "%version%";'

        Enter password: 

        +-------------------------+-------------------+

        | Variable_name           | Value             |

        +-------------------------+-------------------+

        | innodb_version          | 5.6.19            |

        | protocol_version        | 10                |

        | slave_type_conversions  |                   |

        | version                 | 5.6.19-1~dotdeb.1 |

        | version_comment         | (Debian)          |

        | version_compile_machine | x86_64            |

        | version_compile_os      | debian-linux-gnu  |

        +-------------------------+-------------------+
OSX上的

        yves$ mysql -u root -p -e 'SHOW VARIABLES LIKE "%version%";'

        Enter password: 

        +-------------------------+------------------------------+

        | Variable_name           | Value                        |

        +-------------------------+------------------------------+

        | innodb_version          | 5.6.19                       |

        | protocol_version        | 10                           |

        | slave_type_conversions  |                              |

        | version                 | 5.6.19                       |

        | version_comment         | MySQL Community Server (GPL) |

        | version_compile_machine | x86_64                       |

        | version_compile_os      | osx10.7                      |

        +-------------------------+------------------------------+

0 个答案:

没有答案
相关问题