I'm currently using Ruby on Rails but I'm looking to do some outside database work. Is there an actual way to get my database info (username, password, host, etc.) for the current environment? I'm trying to get it so I can connect like this:
con = Mysql.real_connect("host", "user", "pw", "current_db")
Discuss This Question: