Raizekas

Untitled

Apr 26th, 2021
552
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package duombaze;
  2.  
  3. import java.sql.Connection;
  4. import java.sql.DriverManager;
  5. import java.sql.SQLException;
  6.  
  7. public class DbKonfiguracija
  8. {
  9.     final static String DB_NUORODA = "jdbc:mysql://localhost/testuotojai_dantistai?serverTimezone=UTC";
  10.     final static String DB_USERNAME = "root";
  11.     final static String DB_PASSWORD = "";
  12.  
  13.     public static Connection sukurtiJungti() throws SQLException
  14.     {
  15.         return DriverManager.getConnection(DB_NUORODA, DB_USERNAME, DB_PASSWORD);
  16.     }
  17. }
  18.  
RAW Paste Data