title: Mysql access over LAN
body: <p>I have created a java application which connects to a mysql database using the <strong>JDBC driver</strong>. I have the mysql server running on the same machine as my java application.</p>
  
  <p>When I connect to the database on localhost the application is working fine. My system in connected to other systems via LAN. Now i want to run my application on these systems connecting to the database on the mysql server i have on my system.</p>
  
  <p>What changes do i need to make in my <strong>mysql workbench</strong> or the <strong>java application</strong> to deploy this. I have mysql 6.1 workbench installed.</p>
  
  <p>I am getting the following error:</p>
  
  <pre><code>run: Communications link failure
  
   Last packet sent to the server was 0 ms ago. Exception in thread
   "AWT-EventQueue-0" java.lang.NullPointerException
           at help.helpdesk.Ready(helpdesk.java:97)
           at help.helpdesk.&lt;init&gt;(helpdesk.java:89)
           at help.helpdesk$6.run(helpdesk.java:428)
           at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
           at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
           at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
           at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
           at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
           at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
           at java.awt.EventDispatchThread.run(EventDispatchThread.java:122) BUILD
   SUCCESSFUL (total time: 22 seconds)
  </code></pre>
  
  <p>when I try to connect to the database on my local server by using the ip address of my system.</p>