[erlang-questions] [HEADS UP] Emysql driver
Barco You
barcojie@REDACTED
Thu Jul 4 09:43:35 CEST 2013
The same result:
Erlang R16B01 (erts-5.10.2) [source] [64-bit] [smp:8:8] [async-threads:10]
[kernel-poll:false] [dtrace]
Eshell V5.10.2 (abort with ^G)
1> application:start(crypto).
ok
2> application:start(emysql).
ok
3> emysql:add_pool(db_pool, 10, "client", "mypass", "127.0.0.1", 3306,
"hello", utf8).
** exception exit: {failed_to_connect_to_database,econnrefused}
in function emysql_conn:open_connections/1 (src/emysql_conn.erl, line
136)
in call from emysql:add_pool/9 (src/emysql.erl, line 226)
4>
On Thu, Jul 4, 2013 at 3:41 PM, Max Lapshin <max.lapshin@REDACTED> wrote:
> localhost may be handled differently and mysql console client may use
> unix domain socket to connect.
>
> Check 127.0.0.1, not localhost
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130704/17074664/attachment.htm>
More information about the erlang-questions
mailing list