From: Stephan Wehner Date: 2009-04-26T22:53:20+09:00 Subject: Re: passing password to mysql Phlip wrote: > Stephan Wehner wrote: >> Phlip wrote: >>>> Is there a way to do this in Ruby? >>> Grab ActiveRecord (part of Rails, ob-vossly), and write its database.yml >>> file. >>> Oh, and actually use it to rip all your tables. It's just too easy to >>> use! >> >> Ok thanks; however I find the mysql prompt sometimes easier and faster. >> Not always but often enough. > > If you mean raw SQL statements, just .execute() them. Otherwise, how > does the > MySQL connection driver work? It has to solve your actual problem on the > inside, > right? Yes, I am aware of using connection.execute(..), select_all(...), etc. However, I would like to be able to use the mysql prompt. So is this a case where a bash script can do more than a Ruby script? Stephan -- Posted via http://www.ruby-forum.com/.