Help us understand the problem. What is going on with this article?

Travis CIでMySQLに接続できなくなった

More than 5 years have passed since last update.

古いリポジトリのテストを久しぶりにTravis CI上で走らせたら、次のようなエラーが出た。

Incorrect MySQL client library version! This gem was compiled for 5.5.41 but the client library is 5.6.24.

2015/4/9前後にTravis CI上のMySQLのバージョンが5.5系から5.6系に上がったのだけれども、今回はbundle installした結果をキャッシュするようにしていたために5.5系のライブラリとリンクしたmysql2 gemを使って5.6系と接続しようとしていたことが原因だった。

キャッシュはTravis CI上のリポジトリごとの画面で削除できるので、そこから削除したのち再実行したら上記のエラーは出なくなった。

image

ちなみに時々MySQLサーバが起動せず接続に失敗することがあって、そのときは再実行したら普通に走った。
https://twitter.com/travisci/status/588012083083665409

参考

ikm
Web Developer. Ruby/Rails, Javascript/Coffeescript, Objective-C.
http://aerial.st
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした