<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ukonlly</author_name>
  <author_url>https://blog.hatena.ne.jp/ukonlly/</author_url>
  <blog_title>開発めも２</blog_title>
  <blog_url>https://ukonlly.hatenablog.jp/</blog_url>
  <categories>
    <anon>データベース</anon>
    <anon>mysql</anon>
  </categories>
  <description>datadir変更して、socketも変更して、mysqld再起動まではうまくいく。 しかし mysql -u root -p でログインしようとすると ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) おい、変わってないじゃん・・・ 解決方法my.cnfの [client] のところにもsocketの追加が必要でした。 [mysqld] # datadir=/var/lib/mysql datadir=/home/mysql/mysql …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fukonlly.hatenablog.jp%2Fentry%2F20120222%2F1329889843&quot; title=&quot;my.cnfのdatadir変更ではまる - 開発めも２&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>2012-02-22 14:50:43</published>
  <title>my.cnfのdatadir変更ではまる</title>
  <type>rich</type>
  <url>https://ukonlly.hatenablog.jp/entry/20120222/1329889843</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
