method
connect
v2.2.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::MysqlAdapter
connect()private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 538
def connect
@connection.reconnect = true if @connection.respond_to?(:reconnect=)
encoding = @config[:encoding]
if encoding
@connection.options(Mysql::SET_CHARSET_NAME, encoding) rescue nil
end
if @config[:sslca] || @config[:sslkey]
@connection.ssl_set(@config[:sslkey], @config[:sslcert], @config[:sslca], @config[:sslcapath], @config[:sslcipher])
end
@connection.real_connect(*@connection_options)
configure_connection
end