title: Unable to connect to MySQL on Ubuntu from MySQL Workbench on Windows
body: <p>I have a Linux VM running Ubuntu 14.04 LTS Server. I have installed MySQL 5.6.26 on it and have added a user by issuing the following commands from the terminal window:</p>
  
  <pre><code>CREATE USER 'sas'@'%' IDENTIFIED BY 'some-password-1234';
  GRANT ALL PRIVILEGES ON *.* TO 'sas'@'%' IDENTIFIED BY 'some-password-1234' WITH GRANT OPTION;
  FLUSH PRIVILEGES;
  </code></pre>
  
  <p>I can log into mysql with this user with this command:</p>
  
  <pre><code>mysql -u sas -p
  </code></pre>
  
  <p>and can see this user listed in mysql.users table by issuing this command:</p>
  
  <p>mysql> <code>select host, user from mysql.user;</code></p>
  
  <p>which results to the following output:</p>
  
  <pre><code>+-----------+------------------+
  | host      | user             |
  +-----------+------------------+
  | %         | sas              |
  | 127.0.0.1 | root             |
  | ::1       | root             |
  | localhost | debian-sys-maint |
  | localhost | root             |
  | ubuntu    | root             |
  +-----------+------------------+
  </code></pre>
  
  <p>However, when I try to setup a connection in MySQL Workbench from a Windows box using the credentials of user "sas", I get </p>
  
  <blockquote>
    <p>"Can't connect to MySQLServer on 10.166.7.16".</p>
  </blockquote>
  
  <p>This is not a network issue since running tcpdump on the Linux box shows the initiated connection from the Windows box. </p>
  
  <p>What should I be looking out for?</p>