91s

プログラミング関係、日記などを書きます

Rails6, Ruby2,7, mysql8 でdocker環境を作成した時に詰まった箇所 メモ

  • Mysql8
    • 認証のデフォルトがcaching_sha2_passwordになっている
      • mysql2がまだ対応していない
      • Sequel Proもまだ対応していない(テストビルド版では対応している)
    • 対処

      • docker-compose.ymlのmysqlコンテナのコマンドに追記
        • command: mysqld --character-set-server=utf8mb4 --default-authentication-plugin=mysql_native_password
        • (--default-authentication-plugin=mysql_native_password が追記部分)
    • 参考:https://qiita.com/ucan-lab/items/3ae911b7e13287a5b917

  • Ruby2.7