2
2

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 5 years have passed since last update.

Access denied for user 'root'@'localhost' が発生した時の対処方法

Posted at

毎回久しぶりにrailsでrake:db create するとこのエラーが起こるのでメモ

Access denied for user 'root'@'localhost'
が発生したら

database.yml

default: &default
adapter: mysql2
encoding: utf8
pool: 5
username: root
password:
socket: /tmp/mysql.sock

ってとこのpasswordにmysqlのパスワードを入力すれば解決する。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?