title: Insert Date from java (eclipse) to Sql (workbench)
body: <p>I entered the code and I wanted to send this data to the prepared table in Workbench (SQL). The system shows no connection. I work in an eclipse environment and I have problems to send data from jtable to Workbench</p>
  
  <pre><code>JButton btnUpdate = new JButton("Update");
      btnUpdate.addActionListener(new ActionListener() {
          public void actionPerformed(ActionEvent arg0) {
  
  
              try {
                  Class.forName("com.mysql.jdbc.Driver");
                  Connection conn = null;
  
                  conn = (Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/tabela2?autoReconnect=true&amp;useSSL=false","root","Jackpatu205");
                  String insert = "insert into autohandel values (?, ? , ? , ?,?)";
                  PreparedStatement ps = (PreparedStatement) conn.prepareStatement(insert);
  
                      ps.setString(1, "1");
                      ps.setString(2, "Citroen");
                      ps.setString(3, "2015");
                      ps.setString(4, "12500");
                      ps.setString(5,"France");
                      ps.executeUpdate();
  
  
  
                  if (conn !=null) {
                      System.out.println("\nConnected Update");   
  
                      System.out.println(" --------------------------------------");      
                  }
                          }catch (Exception e) {
                      System.out.print("No Connection Update");
                  }   
              //
          }
      });
  </code></pre>