title: how to packaging jar file and mysql database
body: <p>I created a java desktop application by using net beans 8.0 and MySQL as database i connected database through local host 3306 . I make the jar file by clean and build . the jar file is work fine in my computer but when i moved the jar file to my friends computer is not work I Install MySQL in his computer so I get massage that say there is no table so how i can packaging the MySQL database with jar file I will appreciate any help.</p>
  
  <p>i use that code to connect data base</p>
  
  <pre><code>cons = DriverManager.getConnection("jdbc:mysql://localhost:3306/monl", "root", "zain");
  </code></pre>