ActiveRecord::Base.establish_connection(
:adapter => 'mysql',
# :host => 'localhost', #本地
:host => '192.xxx.xxx.xxx',
:port => 53306, #默认为3306
:password => 'password',
:encoding => 'utf8',
:username => 'root',
:password => 'password',
:database => 'boast'
)