Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static DatabaseConnector create() throws SQLException {
- try {
- return new DatabaseConnector("localhost", "tamagotchi", "root", "");
- } catch (SQLException ex) {
- throw ex;
- }
- }
- private void connect() throws SQLException {
- try {
- dbConnection = DriverManager.getConnection("jdbc:mysql://" + dbHost + ":3306/" + dbDatabase, dbUsername, dbPassword);
- } catch (SQLException ex) {
- throw ex;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement