我原来用的是 :
conn = DriverManager.getConnection("jdbc:mysql://192.168.2.252:3306/haojiantao?username=haojiantao&password=haohao"); 所以保错改为conn = DriverManager.getConnection("jdbc:mysql://192.168.2.252:3306/haojiantao","haojiantao","haohao");
就正常了,这是驱动的问题么?还是别的什么问题.
保错的那种格式一般在什么情况下可以正常使用呢