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

Rails開発環境でmysqlを使っていて「SSL connection error: Unable to get certificate」がでたときの対応

More than 1 year has passed since last update.

あるときから(たぶんgemを更新したタイミング)開発環境を起動してアクセスすると「SSL connection error: Unable to get certificate」が発生するようになった。
(rails sは問題なく起動)

対応方法

database.ymlに、「sslverify: false」を追加。

database.yml
省略

development:
  <<: *default
  sslverify: false
  database: database_name
  socket: /tmp/mysql.sock

省略
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