Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Connection openConnection() throws Exception {
- Class.forName("com.mysql.jdbc.Driver");
- Connection connection = DriverManager.getConnection("jdbc:mysql://" + this.host + ":" + this.port + "/" + this.database, this.user, this.password);
- this.connection = connection;
- return connection;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement