Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Connection connectToDB() throws ClassNotFoundException,SQLException
- {
- Connection connection = null;
- Class.forName("com.mysql.jdbc.Driver");
- connection = DriverManager.getConnection("jdbc:mysql://xxx.freemysqlhosting.net:3306/user","user", "password");
- return connection;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement