Connection DB with Statement

This commit is contained in:
Mats Pape 2022-01-10 14:16:14 +01:00
parent db77cf584c
commit e2e726adfb
8 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,5 @@
package com.example.happy_bird;
import java.beans.Statement;
import java.sql.*;
public class MariaDB
{
@ -21,6 +20,7 @@ public class MariaDB
try {
Class.forName(driver);
con=DriverManager.getConnection(url, username, pw);
st=con.createStatement();
System.out.println("Connection is successful");
} catch (Exception e) {
System.out.println("Fehler in der Verbindung");