This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 131024 - Default MySQL settings cause 'No such file or directory - /tmp/mysql.sock' error on JRuby 1.1 RC2
Summary: Default MySQL settings cause 'No such file or directory - /tmp/mysql.sock' er...
Status: RESOLVED FIXED
Alias: None
Product: ruby
Classification: Unclassified
Component: Rails (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Erno Mononen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-25 13:30 UTC by Erno Mononen
Modified: 2008-03-26 16:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erno Mononen 2008-03-25 13:30:42 UTC
Likely caused by the fix for http://jira.codehaus.org/browse/JRUBY-1272. Now that UNIXSocket is available on JRuby, 
setting host to 'localhost' in database.yml causes the Ruby MySQL library that ships with Rails to try to use a unix 
socket connection instead of a tcp/ip one. The fix is either to use 127.0.0.1 instead of localhost when generating 
database.yml or to not comment out the socket attribute when running on JRuby 1.1 RC2 or newer.
Comment 1 Erno Mononen 2008-03-25 14:48:08 UTC
I will fix this by using 127.0.0.1 as the host due to http://jira.codehaus.org/browse/JRUBY-2303, need to revisit when 
that issue gets fixed.
Comment 2 Erno Mononen 2008-03-26 16:30:57 UTC
Fixed.

http://hg.netbeans.org/main/rev/fe7a428b9a79