<?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 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>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by Ryan Baxter</title>
      <description>Huzzah!  My blog helped somebody. :P</description>
      <pubDate>Mon, 15 Oct 2007 06:15:55 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:a071ea05-6e8d-4892-805a-6b38605f1293</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-148</link>
    </item>
    <item>
      <title>"rake aborted! No such file or directory - /tmp/mysql.sock" by George</title>
      <description>Thanks.. was looking for this fix. It works a treat on ubuntu 7.04.</description>
      <pubDate>Mon, 15 Oct 2007 05:09:17 -0700</pubDate>
      <guid isPermaLink="false">urn:uuid:bcb1aed4-5b2c-4dd6-8c07-7030f2eeda19</guid>
      <link>http://crunchlife.com/articles/2007/10/06/rake-aborted-no-such-file-or-directory-tmp-mysql-sock#comment-147</link>
    </item>
  </channel>
</rss>
