<div dir="ltr">Solved, the bind-address of mhysql should be changed to 0.0.0.0<div><br></div><div>But the result packet of emysql:execute looks very verbose and fuzzy. How can I get only the clean field value or a row, like {field, value} ?</div>
<div><br></div><div><div>emysql:execute(db_pool, <<"select * from user where tel = 13761975289">>).</div><div>{result_packet,11,</div><div>               [{field,2,<<"def">>,<<"fangchan">>,<<"user">>,<<"user">>,</div>
<div>                       <<"userid">>,<<"userid">>,8,<<>>,63,20,16899,0},</div><div>                {field,3,<<"def">>,<<"fangchan">>,<<"user">>,<<"user">>,</div>
<div>                       <<"name">>,<<"name">>,254,<<>>,33,36,20489,0},</div><div>                {field,4,<<"def">>,<<"fangchan">>,<<"user">>,<<"user">>,</div>
<div>                       <<"id_no">>,<<"id_no">>,254,<<>>,33,54,20481,0},</div><div>                {field,5,<<"def">>,<<"fangchan">>,<<"user">>,<<"user">>,</div>
<div>                       <<"sex">>,<<"sex">>,1,<<>>,63,1,0,0},</div><div>                {field,6,<<"def">>,<<"fangchan">>,<<"user">>,<<"user">>,</div>
<div>                       <<"age">>,<<"age">>,2,<<>>,63,6,0,0},</div><div>                {field,7,<<"def">>,<<"fangchan">>,<<"user">>,<<"user">>,</div>
<div>                       <<"tel">>,<<"tel">>,254,<<>>,33,33,0,0},</div><div>                {field,8,<<"def">>,<<"fangchan">>,<<"user">>,<<"user">>,</div>
<div>                       <<"email">>,<<"email">>,253,<<>>,33,132,0,0}],</div><div>               [[1,</div><div>                 <<231,138,185,230,157,176>>,</div>
<div>                 <<"237689098736789870">>,1,32,<<"13761975289">>,</div><div>                 <<"<a href="mailto:you.jie@bestv.com.cn">you.jie@bestv.com.cn</a>">>]],</div>
<div>               <<>>}</div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 4:21 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">Barco, it means that you need to read manual for mysql server and<br>
enable socket listener.<br>
</blockquote></div><br></div>