LoginSignup
0
0

More than 3 years have passed since last update.

「SQLSTATE[HY000] [2002] Connection refused」エラーの解決法

Last updated at Posted at 2020-05-18

sql.png

Cloud9でLaravelを使った開発をしていたら画像のようなエラーが出ました。

初めは何かわからなかったけど、原因と対策は簡単。

コマンドで初めにSQLサーバーを起動していなかったというだけでした。

開発環境

・Windows10
・AWS(Cloud9)
・Larabel

解決法

初めにSQLサーバーを起動することが必要です。

◎SQLサーバ起動

$ sudo service mysqld start

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