[erlang-questions] MacOSX 10.5, odbc, MySQL
Andrew Thompson
andrew@REDACTED
Mon Oct 12 19:47:18 CEST 2009
On Mon, Oct 12, 2009 at 08:48:07AM -0700, wenew zhang wrote:
> why no body answers this question?
> it's a bug or what's wrong with it?
> maybe it's very simple and i realy confused!
>
>
> http://erlang.org/pipermail/erlang-questions/2009-March/042389.html
>
> Eshell V5.7.3 (abort with ^G)
> 1> odbc:start().
> ok
> 2> odbc:connect("";[]).
> * 1: syntax error before: ';'
> 2> odbc:connect("",[]).
> =ERROR REPORT==== 12-Oct-2009::07:26:45 ===
> ODBC: received unexpected info: {tcp_closed,#Port<0.565>}
> =ERROR REPORT==== 12-Oct-2009::07:26:45 ===
> ** Generic server <0.39.0> terminating
> ** Last message in was {#Port<0.563>,{exit_status,138}}
> ** When Server state == {state,#Port<0.563>,
> {<0.31.0>,#Ref<0.0.0.39>},
>
> <0.31.0>,undefined,on,undefined,undefined,on,
> connecting,undefined,0,
> [#Port<0.561>,#Port<0.562>],
> #Port<0.564>,#Port<0.565>}
> ** Reason for termination ==
> ** {port_exit,killed}
> {error,connection_closed}
> 3>
The first argument to odbc:connect has to be an ODBC DSN, it can't just
be a blank string. Examples of DSNs can be found in the odbc user's
guide.
Have you configured ODBC at all?
Andrew
More information about the erlang-questions
mailing list