Properties props =new Properties();
		props.put("user", "root");  
		props.put("password", "root");  
		props.put("useInformationSchema","true"); //表注释

		Connection con = null;
		try {
			Class.forName("com.mysql.jdbc.Driver");
			con = DriverManager.getConnection("jdbc:mysql://133.96.46.13:3306/test?useUnicode=true&characterEncoding=utf-8", props);
		} catch (SQLException e1) {
			e1.printStackTrace();
		} catch (ClassNotFoundException e) {
			e.printStackTrace();
		}
		

 

相关文章:

  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
  • 2021-11-24
  • 2021-11-26
  • 2022-12-23
  • 2021-05-29
  • 2021-05-11
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2021-09-29
  • 2021-06-18
  • 2022-02-07
  • 2022-02-07
  • 2022-12-23
相关资源
相似解决方案