回答編集履歴

1

前回から、改善した結果の報告と、現時点で起っている問題(エラー)

2020/06/01 10:36

投稿

suirunakamura
suirunakamura

スコア16

test CHANGED
@@ -79,3 +79,91 @@
79
79
 
80
80
 
81
81
  どうか、ご確認と解決案をよろしくお願いします。
82
+
83
+
84
+
85
+
86
+
87
+ 改めて、確認もかねてmysqlのユーザー権限を設定しなおしてみました。データベース作成やテーブル作成の権限を付与してみました。しかし、再度db:createコマンドを実行してみても、解決に至らずエラー文も前回と同じ結果になってしまいました。
88
+
89
+ ```ここに言語を入力
90
+
91
+ GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost';
92
+
93
+ Query OK, 0 rows affected (0.01 sec)
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ rails db:create
104
+
105
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:90: warning: already initialized constant FileUtils::VERSION
106
+
107
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.4.1/lib/fileutils.rb:105: warning: previous definition of VERSION was here
108
+
109
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:1188: warning: already initialized constant FileUtils::Entry_::S_IF_DOOR
110
+
111
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.4.1/lib/fileutils.rb:1284: warning: previous definition of S_IF_DOOR was here
112
+
113
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:1446: warning: already initialized constant FileUtils::Entry_::DIRECTORY_TERM
114
+
115
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.4.1/lib/fileutils.rb:1568: warning: previous definition of DIRECTORY_TERM was here
116
+
117
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:1501: warning: already initialized constant FileUtils::OPT_TABLE
118
+
119
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.4.1/lib/fileutils.rb:1626: warning: previous definition of OPT_TABLE was here
120
+
121
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:1555: warning: already initialized constant FileUtils::LOW_METHODS
122
+
123
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.4.1/lib/fileutils.rb:1685: warning: previous definition of LOW_METHODS was here
124
+
125
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/2.5.0/fileutils.rb:1562: warning: already initialized constant FileUtils::METHODS
126
+
127
+ /Users/apple/.rbenv/versions/2.5.1/lib/ruby/gems/2.5.0/gems/fileutils-1.4.1/lib/fileutils.rb:1692: warning: previous definition of METHODS was here
128
+
129
+ Mysql2::Error: Can't create database 'portfolio_development' (errno: 13)
130
+
131
+ Couldn't create 'portfolio_development' database. Please check your configuration.
132
+
133
+ rails aborted!
134
+
135
+ ActiveRecord::StatementInvalid: Mysql2::Error: Can't create database 'portfolio_development' (errno: 13)
136
+
137
+ /Users/apple/create/portfolio/bin/rails:9:in `<top (required)>'
138
+
139
+ /Users/apple/create/portfolio/bin/spring:15:in `<top (required)>'
140
+
141
+ bin/rails:3:in `load'
142
+
143
+ bin/rails:3:in `<main>'
144
+
145
+
146
+
147
+ Caused by:
148
+
149
+ Mysql2::Error: Can't create database 'portfolio_development' (errno: 13)
150
+
151
+ /Users/apple/create/portfolio/bin/rails:9:in `<top (required)>'
152
+
153
+ /Users/apple/create/portfolio/bin/spring:15:in `<top (required)>'
154
+
155
+ bin/rails:3:in `load'
156
+
157
+ bin/rails:3:in `<main>'
158
+
159
+ Tasks: TOP => db:create
160
+
161
+ ```
162
+
163
+
164
+
165
+
166
+
167
+ 原因がわからないですww
168
+
169
+ 再度、解決に努めてみます!