LoginSignup
1
1

More than 5 years have passed since last update.

RROR 1045 (28000): Access denied for user 'ROOT'@'localhost' (using password: NO)

Last updated at Posted at 2017-08-01

rails s しようとしたら以下のエラーが出た。

RROR 1045 (28000): Access denied for user 'ROOT'@'localhost' (using password: NO)
$ rails server
=> Booting Puma
=> Rails 5.0.4 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
Exiting
Mysql2::Error: Access denied for user 'root'@'localhost' (using password: NO)(Sequel::DatabaseConnectionError)

一旦サーバーを止め以下のコードを打ち込みます。

$ mysql.server stop
$ mysqld_safe --skip-grant-tables &

そしたら上手く言いました。

http://www.aipacommander.com/entry/2014/05/26/152247

1
1
0

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
1
1