<div dir="ltr">sure, I tested already by directly connecting Mysql server from shell with the command you show and it works fine.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 4, 2013 at 3:30 PM, Motiejus Jakštys <span dir="ltr"><<a href="mailto:desired.mta@gmail.com" target="_blank">desired.mta@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Thu, Jul 4, 2013 at 8:57 AM, Barco You <<a href="mailto:barcojie@gmail.com">barcojie@gmail.com</a>> wrote:<br>
> Why do I get the following error when I tried to connect the DB?<br>
<br>
</div>Usually this error happens if MySQL server is not running/not<br>
listening on localhost:3306. Try this:<br>
<br>
$ mysql -hlocalhost -P3306 -uclient -Pmypass<br>
<br>
Does the above work?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Motiejus Jakštys<br>
</font></span></blockquote></div><br></div>