26
13

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.

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 102

Posted at

homebrew 経由で mysql をインストールし利用しているのですが、先日アップグレードを行いました。
その後 mysql サーバに接続しようとしたら、下記エラーが発生し接続ができなくなりました。

ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 102

調べてみると原因は、/etc/hosts.allow に記載がないためのようでした。

/etc/hosts.allow で接続を許可するホストを記述します。

mysqld: ALL: allow

あとは、反映させるために再起動をかけて完了です。

$ mysql.server restart
Shutting down MySQL
.... SUCCESS!
Starting MySQL
.. SUCCESS!

References

26
13
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
26
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?