<div dir="ltr">The same result:<div><br></div><div><div>Erlang R16B01 (erts-5.10.2) [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false] [dtrace]</div><div><br></div><div>Eshell V5.10.2  (abort with ^G)</div>
<div>1> application:start(crypto).</div><div>ok</div><div>2> application:start(emysql).</div><div>ok</div><div>3> emysql:add_pool(db_pool, 10, "client", "mypass", "127.0.0.1", 3306, "hello", utf8).</div>
<div>** exception exit: {failed_to_connect_to_database,econnrefused}</div><div>     in function  emysql_conn:open_connections/1 (src/emysql_conn.erl, line 136)</div><div>     in call from emysql:add_pool/9 (src/emysql.erl, line 226)</div>
<div>4></div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 3:41 PM, Max Lapshin <span dir="ltr"><<a href="mailto:max.lapshin@gmail.com" target="_blank">max.lapshin@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">localhost may be handled differently and mysql console client may use<br>
unix domain socket to connect.<br>
<br>
Check 127.0.0.1, not localhost<br>
</blockquote></div><br></div>