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 1 year has passed since last update.

マイグレート時、SQLSTATE[HY000] [2002] Connection refusedが発生する

Posted at

開発環境

Laravel 9.36.3
PHP 8.1.4
XAMPP 8.1.6
phpMyAdmin 5.1.1

状況

  1. マイグレーションファイル作成後、php artisan migrate実行
  2. 以下エラーが発生
terminal
  SQLSTATE[HY000] [2002] Connection refused

対処法

1.XAMPPでserverがそもそも立ち上がってなかったため、Start Allする
image.png

2.再びmigrate実行し成功することを確認

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?