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 &
そしたら上手く言いました。