public UserInfoManager(){
try{
// 连接MySQL数据库
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost:3306/userdb?useSSL=false";
Connection connection = DriverManager.getConnection(url, "root", "password");
// 预处理SQL语句
loginStatement = connection.prepareStatement("SELECT * FROM users WHERE username=? AND password=?");
updateStatement = connection.prepareStatement("UPDATE users SET email=?, phone=? WHERE username=?");
passwordStatement = connection.prepareStatement("UPDATE users SET password=? WHERE username=user1 AND password=?");
registerStatement = connection.prepareStatement("INSERT INTO users (username, password, email, phone) VALUES (?, ?, ?, ?)");
为什么结果显示failed to connect to database,问号处具体该填什么