コンソール ベースの jdbc アプリケーション用に Fake Data Generator (たとえば、姓、名、電子メールなどの個人情報用) が必要です。ランダムな人物のデータをMySQLデータベースに追加したいからです。
以下のMySQLの私のコード:
String url1 = "jdbc:mysql://localhost:3306/restaurant";
String user = "root";
String password = "root";
conn1 = DriverManager.getConnection(url1, user, password);
if (conn1 != null) {
System.out.println("Connected to the database restaurant");
// I want add data generator here.
}