Connection DB with Statement
This commit is contained in:
parent
db77cf584c
commit
e2e726adfb
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user