現在、あるrailsのソースコードをダウンロードしてきて、環境を構築しようとしているところです。
しかし、テーブルを作成しようと思って
rails db:migrate
を実行すると、エラーが発生してしまい、うまくテーブルを作成することができません、
発生したエラーは下記となります。
mysqldump: Got error: 2013: Lost connection to MySQL server at 'reading authorization packet', system error: 0 when trying to connect rails aborted! failed to execute: `mysqldump` Please check the output above for any errors and make sure that `mysqldump` is installed in your PATH and has proper permissions. /Users/hoge/project/bin/rails:9:in `require' /Users/hoge/project/bin/rails:9:in `<top (required)>' /Users/hoge/project/bin/spring:15:in `require' /Users/hoge/project/bin/spring:15:in `<top (required)>' bin/rails:3:in `load' bin/rails:3:in `<top (required)>' /Users/hoge/.rbenv/versions/2.4.1/bin/bundle:22:in `load' /Users/hoge/.rbenv/versions/2.4.1/bin/bundle:22:in `<main>' Tasks: TOP => db:structure:dump (See full trace by running task with --trace)
どなたか、解決法を教えていただけないでしょうか?
回答1件
あなたの回答
tips
プレビュー