method
connect
connect()
private
Hide source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 325 def connect encoding = @config[:encoding] if encoding @connection.options(Mysql::SET_CHARSET_NAME, encoding) rescue nil end @connection.real_connect(*@connection_options) execute("SET NAMES '#{encoding}'") if encoding end