Connect to mysql with java app of pc client
<p>i have install mysql to a windows pc (with ip 192.168.1.100)
and i have made a java application </p>

<p>when a run the application to the same pc with mysql it's runing</p>

<pre><code>String userName = "root";
String password = "1234";
String url = "jdbc:mysql://localhost/emi";
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection(url, userName, password);
</code></pre>

<p>i can't run it from other pc in the same network. the code i use is</p>

<pre><code>String userName = "root";
String password = "1234";
String url = "jdbc:mysql://192.168.1.100:3306/emi";
Class.forName("com.mysql.jdbc.Driver").newInstance();
conn = DriverManager.getConnection(url, userName, password);
</code></pre>

<p>Should I make MySQL Workbench to alow connection from pther pc?</p>
