ETİKETLER

database-connection

İÇERİK TÜRLERİ

Android Studio MySql Bağlantı Hatası

public void veriCek2() {

try { Class.forName("com.mysql.jdbc.Driver"); }

catch (ClassNotFoundException e) {

System.out.println("Jdbc Driverinde Hata: " + e); }

String url = "jdbc:mysql://localhost:3306/Maknart?autoReconnect=true";

String user = "root";

String passwd = "1234";

Connection conn = null; try {

conn = DriverManager.getConnection(url, user, passwd);

Statement statement = conn.createStatement();

Abone ol database-connection