<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>crunchlife: rake aborted! No such file or directory - /tmp/mysql.sock</title>
    <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description></description>
    <item>
      <title>rake aborted! No such file or directory - /tmp/mysql.sock</title>
      <description>&lt;p&gt;If you&amp;#8217;re running into the above error message when trying to perform a Rails migration on Debian or Ubuntu then you might try adding the following line to your database.yml file:&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;socket: /var/run/mysqld/mysqld.sock&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;My database.yml file looks sorta like this:&lt;/p&gt;

&lt;div class="typocode"&gt;&lt;pre&gt;&lt;code class="typocode_default "&gt;development:
  database: crunchlife_development
  adapter: mysql
  host: localhost
  username: mysql_user
  password: @!#?@!
  socket: /var/run/mysqld/mysqld.sock 

test:
  database: crunchlife_test
  adapter: mysql
  host: mysql.ryanbaxter.net
  username: mysql_user
  password: @!#?@!
  socket: /var/run/mysqld/mysqld.sock

production:
  database: crunchlife_production
  adapter: mysql
  host: mysql.ryanbaxter.net
  username: mysql_user
  password: @!#?@!&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Good luck and happy migrations!&lt;/p&gt;</description>
      <pubDate>Sat, 06 Oct 2007 13:40:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:5b1b3a3a-cab6-4bf2-9964-5559ce870a82</guid>
      <author>Ryan Baxter</author>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock</link>
      <category>Ubuntu</category>
      <category>Rails</category>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by libino</title>
      <description>Also works fine for me on Debian-etch 
Thanks (from Slovakia)</description>
      <pubDate>Fri, 20 Aug 2010 06:53:15 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:19747816-0895-4e6e-913a-f93f06c82124</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-54143</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Andrew</title>
      <description>Thanks so much for this, worked a treat!</description>
      <pubDate>Mon, 12 Apr 2010 10:35:35 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:8ac46bb1-dd78-4fca-a3ab-fc02f7a66526</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-42657</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Rahul</title>
      <description>Thanks Ryan</description>
      <pubDate>Sat, 19 Dec 2009 01:45:29 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:59ab5b63-bb07-464c-aa82-6813f63b02a8</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-33403</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Daniel</title>
      <description>Dude, this def helped me.  Thank you!</description>
      <pubDate>Thu, 10 Dec 2009 04:32:15 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:b7a9ed3e-5b36-4424-ac4b-40adb7af39a5</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-32937</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Nando</title>
      <description>Thanks from Spain! </description>
      <pubDate>Wed, 25 Nov 2009 07:47:17 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:277a9ea3-0779-4c78-a969-fdcd1a3656c7</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-32014</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Vasiliy</title>
      <description>BIG thx!  You can add for Centos 5.2 socket: /var/lib/mysql/mysql.sock in post, thanks </description>
      <pubDate>Wed, 04 Nov 2009 06:20:58 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:8d56af49-b74c-42bf-967b-b2eb3c9d0520</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-30798</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by AlemQ</title>
      <description>Tnx Ryan.</description>
      <pubDate>Sun, 25 Oct 2009 06:30:14 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:f5eaab9e-b7cc-470c-97ce-1d3c1de9389d</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-30229</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by ted</title>
      <description>thanks for this. key.</description>
      <pubDate>Tue, 29 Sep 2009 05:26:01 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:267433c6-90e0-4939-8d11-6f140b9a74ea</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-29566</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by ayaz Ahmed Khan</title>
      <description>Thank you, Ryan. That helped.</description>
      <pubDate>Mon, 28 Sep 2009 23:07:22 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:049cc7b0-0c83-4905-9f66-3402e0da0bf3</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-29529</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by ernz</title>
      <description>thanks! it really helped me out!</description>
      <pubDate>Wed, 27 May 2009 20:27:12 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:48211190-832a-42b2-89b6-ceede393336e</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-27346</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by john</title>
      <description>Just the solution I was looking for!</description>
      <pubDate>Wed, 29 Apr 2009 07:47:39 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:c657538f-a7b1-4245-8dc9-f9575e4d4cdf</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-26981</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by eleze</title>
      <description>In Centos 5.2
socket: /var/lib/mysql/mysql.sock

thanks</description>
      <pubDate>Mon, 20 Apr 2009 13:08:22 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:e575730e-817e-4e0b-9ad1-f82ea79cef49</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-26840</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by victoryoalli</title>
      <description>I solved the same problem changing the host: localhost to host: 127.0.0.1

development:
  adapter: mysql
  encoding: utf8
  database: test_development
  pool: 5
  username: root
  password: secret
  host: 127.0.0.1

I hope it would be of help to someone.</description>
      <pubDate>Thu, 25 Dec 2008 12:24:48 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:f4ad8ba3-16f2-4ea1-a60d-74e40f710c63</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-17147</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by jedzej</title>
      <description>thanks a lot, you're good jedi;]</description>
      <pubDate>Thu, 20 Nov 2008 16:32:12 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:6e04cb72-4684-441d-9958-68bdc24da0ba</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-11760</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by rolo</title>
      <description>many thanx from me also :-)</description>
      <pubDate>Mon, 27 Oct 2008 09:12:46 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:8c7eeda6-4541-4e82-89c9-45527fffa5f0</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-6661</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Mark</title>
      <description>Woo hoo! Getting there now...</description>
      <pubDate>Wed, 17 Sep 2008 08:30:40 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:e583289d-311b-480b-bbef-9287e16c3b0d</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-4652</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by namkhanh</title>
      <description>I used Ubuntu 8.0.4. I sort same upper but It display message "No such file or directory - /var/run/mysqld/mysqld.sock". please help me.</description>
      <pubDate>Wed, 20 Aug 2008 00:11:47 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:f9d7ce66-a477-4782-a813-6e588c79bd95</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-4226</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Ryan Baxter</title>
      <description>Tyler - If you're developing and testing on the same server then it may be a teeny bit DRYer. I'm not so it's a irrelevant whether I create two symlinks or two config entries. Besides, I tend to forget symlinks between servers. If both entries are in your database.yml then you'll be less likely to forget a symlink migrating from dev to test.
&lt;br /&gt;&lt;br /&gt;
Jannie - Welkom!</description>
      <pubDate>Thu, 07 Aug 2008 11:49:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:3b8f96fe-cb86-4334-87b0-c508f12e8542</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-4194</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by jannie</title>
      <description>Dankie!!</description>
      <pubDate>Thu, 07 Aug 2008 04:14:44 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:36e803dc-3438-4a42-851d-25c47db96758</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-4193</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Tyler</title>
      <description>You can also just symlink /tmp/mysql.sock to /var/run/mysqld/mysqld.sock
&lt;br&gt;
&lt;code&gt;sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock&lt;/code&gt;
&lt;br&gt;
I think that's a little DRYer solution to modifying each entry in your db.yml</description>
      <pubDate>Sat, 28 Jun 2008 09:47:25 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:2638bebb-7e84-441c-8aac-1da5f74826cd</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-4133</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Scott O</title>
      <description>Still helping people like me, Ryan. Thanks.</description>
      <pubDate>Fri, 20 Jun 2008 16:04:11 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:d483e96f-8242-4565-91ca-1762e7441576</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-4117</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Ryan Baxter</title>
      <description>Great! I always like hearing when something I post helps someone out.</description>
      <pubDate>Tue, 01 Apr 2008 05:22:40 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:2dd34388-a9b7-427e-9290-029f2a639d1d</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-3971</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Paul Fisher</title>
      <description>This is fantastic. You saved me from a bunch of headaches. Thanks!</description>
      <pubDate>Mon, 31 Mar 2008 23:12:21 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:ef4fef4f-140d-4133-b313-85e404ab440d</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-3969</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Matthias (mw@zweiloewen.de)</title>
      <description>Yipiiiieeeeee, great! THX &amp; greets from germany!</description>
      <pubDate>Sun, 09 Dec 2007 04:37:59 -0800</pubDate>
      <guid isPermaLink="false">urn:uuid:a28977fd-e75f-43b4-bfde-0e50a342aeff</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-1065</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by andy</title>
      <description>Thanks - it helped me as well...</description>
      <pubDate>Sun, 28 Oct 2007 22:24:00 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:c4008b0d-62d1-478c-8a25-c1c59f9c650e</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-175</link>
    </item>
  </channel>
</rss>
