title: ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 104
body: <p>I am trying to setup mysql on ubuntu server 17.04 so i can access it remotely.</p>
  
  <p>Currently it is up and running, i can access it locally or if i SSH in first, but when i try to connect using <code>mysql -h &lt;ip&gt; -u &lt;admin&gt; -p</code> on my linux mint machine.</p>
  
  <p>It gives me <code>ERROR 2013 (HY000): Lost connection to MySQL server at 'reading initial communication packet', system error: 104</code></p>
  
  <p>Here is my /etc/mysql/my.cnf </p>
  
  <p><code>[mysqld]
  bind-address = 0.0.0.0
  skip-name-resolve
  </code></p>
  
  <p>I currently have my firewall off on both machines</p>
  
  <p>my user is <code>CREATE USER '&lt;username&gt;'@'%' AS IDENTIFIED BY '&lt;Password&gt;'</code></p>
  
  <p>I have rebooted the server multiple times, restarted the service, havent gotten it to work yet.</p>
  
  <p>I have also tried to connect using HeidiSQL on my windows machine, i get the same error. </p>
  
  <p>Not sure what else to try</p>