Skip to content

Instantly share code, notes, and snippets.

View realyota's full-sized avatar

Maciej Bąk realyota

View GitHub Profile
import java.sql.*;
public class BatchInsertExample {
public static void main(String[] args) {
String sourceUrl = "jdbc:mysql://localhost:3306/source_db";
String sourceUsername = "root";
String sourcePassword = "password";
String destUrl = "jdbc:mysql://localhost:3306/dest_db";
String destUsername = "root";