The code for the connection is like this.
String url=jdbc:mysql://127.0.0.1:3306/test
Connection conn = DriverManager.getConnection(url, user, password);
But in reality the database test does not exist,and I don’t know what the name of the target database is.
How to connect to the target and create a database