freelancing-god/thinking-sphinx — Issue #309: Database user defaults to root, not current user
Author: davidlee
Created: 2011-11-17 23:21:44+00:00
State: open

Omitting the DB user from database.yml causes AR (conveniently) to connect using the current user's account; however in the generated sphinx.conf the sql_user is explicitly set to root by default.

This may be the result of a design decision, but I suggest that the current user's name - ie ENV['USER'] - is used as a default instead of root.