0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

http://localhost:3000/ をしたらActiveRecord::NoDatabaseErrorが起こった場合の解決策

Posted at

オリジナルアプリを作成する為に環境構築しました。すべての環境構築が完了したので、rails sでサーバーを立ち上げました。その際に下記↓のエラーに遭遇しました。

試したこと:http:rails s
発生したエラー画面:https://gyazo.com/f1127958ab633e4e78e718160d4b34a7
エラー内容:”データベースが作られていません”
解決策:

$ rails db:create

再度rails sでサーバーを立ち上げます
すると・・・
https://gyazo.com/029929ba99fa65205ab2494d7fe78edc

無事サーバーが立ち上がりました🎉🎉🎉

0
0
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?