title: connecting to mysql server on another PC in LAN
body: <p>I have mySQL setup in a PC on my local network, how do I connect to it? I also have mySQL installed in this computer (which I want to use to connect to the database).</p>
  
  <p>I tried the following but it's not working</p>
  
  <pre><code>mysql -u user -h 192.168.1.28:3306 -p password
  ERROR 2005 (HY000): Unknown MySQL server host '192.168.1.28:3306' (0)
  </code></pre>
  
  <p>EDIT:
  Thanks for your help. Anyway, I connect without 3306 and I have another problem. MACBOOK is the name of my client computer.</p>
  
  <pre><code>mysql -u user -ppassword -h 192.168.1.28 
  ERROR 1045 (28000): Access denied for user 'user'@'MACBOOK' (using password: YES)
  </code></pre>
  
  <p>Thanks.</p>