我使用 odbc 来连接 mysql。我通过以下代码启动 odbc:
ConnectString = "Driver={MySQL ODBC 5.1 Driver};Server=localhost;Database=mydb; User=userdb;Password=pwddb;Option=3;",case odbc:connect(ConnectString, [{scrollable_cursors,off}]) of ...
在 8 小时不活动(或多或少)后,odbc 崩溃:
=CRASH REPORT==== 22-Jun-2012::02:09:27 === crasher:
initial call: odbc:init/1
pid: <0.113.0>
registered_name: []
exception exit: {stopped,{'EXIT',<0.108.0>,killed}}
in function gen_server:terminate/6 (gen_server.erl, line 737)
ancestors: [odbc_sup,<0.111.0>]
messages: [{'EXIT',#Port<0.967>,normal}]
links: [<0.112.0>]
dictionary: []
trap_exit: true
status: running
heap_size: 377
stack_size: 24
reductions: 2237 neighbours:
连接是否有时间限制?