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

パスワードが合っているのにエラー(Access denied for user 'root'@'localhost' using password: YES)

Last updated at Posted at 2019-12-12

自分がlaravelの勉強していて何日も詰まった部分がありましたのでここで共有します。

mysqlのログイン方法先はいくつも存在していたということです。

1.コンピューター名:~ ユーザー(普段の表示)
2.vagrant ssh=の環境から入る方法

これらは別々でログイン後、DBやユーザーの存在は違うので初心者の方は要注意です。

つまり1.2.どちらにも同じDB名のtestを作ったとしたら接続したいDBの方で接続しなければタイトルの用なエラーとなります。

rooter:my_slim ユーザー名$ mysql -u root
[vagrant@localhost ~]$ mysql -u root
0
0
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
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?