java连接Mysql,实现新增账号
主函数
import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.Scanner;
public class createUser {
public static void main(String[] args) throws SQLException {
Scanner scanner=new Scanner(System.in);
System.out.println("注册账号");
System.out.println("请输入账号");
String user=scanner.nextLine();
System.out.println("请输入密码");
String password=scanner.nextLine();
try{
createUser(user,password);
System.out.println(