<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tweeeety</author_name>
  <author_url>https://blog.hatena.ne.jp/tweeeety/</author_url>
  <blog_title>tweeeetyのぶろぐ的めも</blog_title>
  <blog_url>https://tweeeety.hateblo.jp/</blog_url>
  <categories>
    <anon>perl</anon>
    <anon>cpan</anon>
    <anon>mysql</anon>
  </categories>
  <description>はじめに perlbrew x cpanm x あとはいろいろな構成でアプリを作っていたのですが、 DBD::mysqlでperl-&gt;mysql接続しようとするとこんなエラーが出ることがあります。 BI connect('dbname=hoge;host=localhost;port=3306','hoge',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) そんなときの対処法 エラーが出るとき # 各変数には適切な値が入ってる my $dbh = DB…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftweeeety.hateblo.jp%2Fentry%2F2015%2F07%2F12%2F221727&quot; title=&quot;【perl】DBI::mysqlでmysqlに接続すると`DBI connect(&amp;#39;dbname=hoge;host=localhost;port=3306&amp;#39;,&amp;#39;hoge&amp;#39;,...) failed: Can&amp;#39;t connect to local MySQL server through socket &amp;#39;/var/lib/mysql/mysql.sock&amp;#39; (2)`と表示されるやーつの対応 - tweeeetyのぶろぐ的めも&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>2015-07-12 22:17:27</published>
  <title>【perl】DBI::mysqlでmysqlに接続すると`DBI connect('dbname=hoge;host=localhost;port=3306','hoge',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)`と表示されるやーつの対応</title>
  <type>rich</type>
  <url>https://tweeeety.hateblo.jp/entry/2015/07/12/221727</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
