SHARE
TWEET

Untitled

a guest Jun 15th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     private void getConexao(){
  2.         try {
  3.             Class.forName("com.mysql.jdbc.Driver");
  4.         } catch (ClassNotFoundException ex) {
  5.             Logger.getLogger(vendas.class.getName()).log(Level.SEVERE, null, ex);
  6.         }
  7.         try {
  8.             con = DriverManager.getConnection("jdbc:mysql:=//localhost:3306/vendas", "root", "");
  9.         } catch (SQLException ex) {
  10.             Logger.getLogger(vendas.class.getName()).log(Level.SEVERE, null, ex);
  11.         }
  12.  
  13.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top