Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package db;
- import java.sql.Connection;
- import java.sql.DriverManager;
- import java.sql.SQLException;
- import java.sql.Statement;
- public class SQL {
- public static Statement getStatement() {
- Connection con;
- try {
- con = DriverManager.getConnection(
- "jdbc:mysql://amund.io:3306",
- "db",
- "scretshit"
- );
- Statement stmt = con.createStatement();
- return stmt;
- } catch (SQLException e) {
- e.printStackTrace();
- return null;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement