<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>y_saiki</author_name>
  <author_url>https://blog.hatena.ne.jp/y_saiki/</author_url>
  <blog_title>Sassyブログ</blog_title>
  <blog_url>https://www.sassy-blog.com/</blog_url>
  <categories>
    <anon>IT・ソフトウェア</anon>
  </categories>
  <description>目次 目次 1.エラーの概要 2.エラーの原因 3.エラー対処手順 3-1.mysql.sockを確認する 3-2.mysql.sockの作成 3-3.所有者の変更 3-4.MySQL再起動 1.エラーの概要 先日、仮想環境でmysqlの設定ファイルを弄ったあとに、再起動を行いログインしようとしたら、 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' というようなエラーが発生した。 調べたら出てきたので、メモを残しておく。 2.エラーの原因 どうや…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.sassy-blog.com%2Fentry%2F20170516%2F1494863227&quot; title=&quot;MySQLで error 2002 (hy000): can&amp;#39;t connect to local mysql server through socket &amp;#39;/var/lib/mysql/mysql.sock&amp;#39; が出たときの対処法 - Sassyブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-05-16 00:47:07</published>
  <title>MySQLで error 2002 (hy000): can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' が出たときの対処法</title>
  <type>rich</type>
  <url>https://www.sassy-blog.com/entry/20170516/1494863227</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
