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?

【MySQL】認証情報が合っているのにログインできない問題|ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

Last updated at Posted at 2025-12-11

環境

  • OS: Windows
  • MySQL Command Line Tool 9.5

原因

  • PCが強制シャットダウンされて再起動した際に起こりがち。MySQLサーバーが停止されている。

発生した不具合

  • DBeaver > Key Retrieval is not allowed.
  • DBeaver > Access denied for user 'root'@'localhost' (using password: YES)

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) [プロセスはコード 1 (0x00000001) で終了しました] このターミナルを Ctrl+D で閉じるか、Enter キーを押して再起動できます。

解決策

  • MySQLを再起動する
  1. [Windows] + [R]で[サービス名を指定して実行]
  2. services.mscを入力して実行
  3. MySQL95(自分は9.5を使っているので95になっていると思われる)を停止
  4. コマンドラインツールの起動とログイン再検証
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?