Raizekas

Untitled

Apr 27th, 2021
30
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package projektas.duombaze.config;
  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_antra_pamoka?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