Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package duombaze;
- import java.sql.Connection;
- import java.sql.DriverManager;
- import java.sql.SQLException;
- public class DbKonfiguracija
- {
- final static String DB_NUORODA = "jdbc:mysql://localhost/testuotojai_dantistai?serverTimezone=UTC";
- final static String DB_USERNAME = "root";
- final static String DB_PASSWORD = "";
- public static Connection sukurtiJungti() throws SQLException
- {
- return DriverManager.getConnection(DB_NUORODA, DB_USERNAME, DB_PASSWORD);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement