Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void createTable() {
- try {
- con.prepareStatement("CREATE TABLE IF NOT EXISTS coinTable (UUID VARCHAR(100), coins INT(16))").executeUpdate();
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- //"con" ist das hier:
- public static Connection con;
- public static void connect() {
- if(!isConnected()) {
- try {
- con = DriverManager.getConnection("jdbc:mysql://127.0.0.1:3306/coins?autoReconnect=true", "kd12543-4", "E17dGu43YTSSxM"); //Hier connected der Server sich
- } catch (SQLException e) {
- e.printStackTrace();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement