📅  最后修改于: 2022-03-11 15:04:45.409000             🧑  作者: Mango
ActiveRecord::Base.establish_connection(
:adapter => 'mysql',
:host => 'localhost',
:username => 'name',
:password => 'password',
:database => 'db_name'
)