ActiveRecord::ConnectionAdapters::MysqlAdapter

class ActiveRecord::ConnectionAdapters::MysqlAdapter

Parent:
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter

The MySQL adapter will work with both Ruby/MySQL, which is a Ruby-based MySQL adapter that comes bundled with Active Record, and with the faster C-based MySQL/Ruby adapter (available both as a gem and from www.tmtm.org/en/mysql/ruby/).

Options:

  • :host - Defaults to “localhost”.

  • :port - Defaults to 3306.

  • :socket - Defaults to “/tmp/mysql.sock”.

  • :username - Defaults to “root”

  • 登录查看完整内容