New ro rails: what mysql lib comes with Ruby/RoR on windows?

After you install the Ruby and MySQL you must install Ruby's MySQL interface. Then you can load it in your script to connect to the database. To make the connection you must provide the host, username and password.

require 'mysql'

db_con = Mysql.new("localhost", "ruby", "password", "mydb") result = db_con.query("Select * from MyTable") result.each_hash do |r|   print "#{r['column1']}" end

Read the README file to see what classes are available. Check out the online documentation for interacting with the database.

Rails needs the MySQL driver installed on the machine. It also requires the connection parameters to be specified in the database.yml file. I don't know if you can use the Rails framework classes for connecting to the database.