Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *
- * @author Daniel
- */
- package server.connect;
- import java.sql.Connection;
- import java.sql.DriverManager;
- public class MySQL {
- public MySQL() {
- try {
- Class.forName("com.mysql.jdbc.Driver").newInstance();
- DriverManager.getConnection("jdbc:mysql://localhost/chars", "root", "lol not real pass :DD");
- } catch(Exception e) {
- e.printStackTrace();
- }
- }
- public static Connection conn;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement