我收到此错误:
'could not obtain a database connection within 5 seconds (waited 5.001017 seconds). The max pool size is currently 16; consider increasing it.'
首先我得到了这个错误,我将计数从5提升到16.但它仍然在发生,我是唯一一个测试数据库的人.当我是唯一的用户时,为什么会这样?
我不在铁轨上.我在用:
ActiveRecord::Base.establish_connection ({ :adapter => 'MysqL2',:database => 'ck',:host => 'localhost',:username => 'root',:password => '',:pool => 16,})
并使用Sinatra.
谢谢