前提・実現したいこと
プログラミング初学者です。
herokuでデプロイ作業を行っています。
下記のサイトを参考に進めていると
"heroku rake db:migrate"
のコマンド実行後エラーが発生しました
https://qiita.com/murakami-mm/items/9587e21fc0ed57c803d0
発生している問題・エラーメッセージ
% heroku rake db:migrate Running rake db:migrate on ⬢ ... up, run.6398 (Free) rake aborted! Mysql2::Error: SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol /app/vendor/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:89:in `connect' /app/vendor/bundle/ruby/2.6.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:89:in `initialize' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/mysql2_adapter.rb:24:in `new' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/mysql2_adapter.rb:24:in `mysql2_connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:887:in `new_connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:931:in `checkout_new_connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:910:in `try_to_checkout_new_connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:871:in `acquire_connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:593:in `checkout' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:437:in `connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:1119:in `retrieve_connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_handling.rb:221:in `retrieve_connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/connection_handling.rb:189:in `connection' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/tasks/database_tasks.rb:238:in `migrate' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:86:in `block (3 levels) in <main>' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:84:in `each' /app/vendor/bundle/ruby/2.6.0/gems/activerecord-6.0.3.4/lib/active_record/railties/databases.rake:84:in `block (2 levels) in <main>' /app/vendor/bundle/ruby/2.6.0/gems/rake-13.0.3/exe/rake:27:in `<top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `load' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:63:in `kernel_load' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/cli/exec.rb:28:in `run' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:476:in `exec' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor.rb:399:in `dispatch' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:30:in `dispatch' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/vendor/thor/lib/thor/base.rb:476:in `start' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/cli.rb:24:in `start' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/exe/bundle:46:in `block in <top (required)>' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/lib/bundler/friendly_errors.rb:123:in `with_friendly_errors' /app/vendor/bundle/ruby/2.6.0/gems/bundler-2.1.4/exe/bundle:34:in `<top (required)>' /app/bin/bundle:113:in `load' /app/bin/bundle:113:in `<main>' Tasks: TOP => db:migrate (See full trace by running task with --trace)
mysql -v Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 11 Server version: 5.7.32 Homebrew Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Reading history-file /Users/xxxx/.mysql_history Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql>
実装環境
heroku/7.47.12 darwin-x64 node-v12.16.2 Rails 6.0.3.4 mysql Ver 14.14 Distrib 5.7.32, for osx10.15 (x86_64) using EditLine wrapper MacOS 10.15.7
試したこと
https://www.st1t.com/entry/2020/06/29/192945
参考サイト
実行するも変化ありませんでした。
あなたの回答
tips
プレビュー