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")
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!