用Mysql control center可以连上
但jsp提示cannot connect to mysql server on localhost:3306.Is there a MySQL server running on the machine/port you are trying to connect to?(java.lang.NumberFormatException)
我的代码:(驱动程序没问题)
conn= java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","");
但jsp提示cannot connect to mysql server on localhost:3306.Is there a MySQL server running on the machine/port you are trying to connect to?(java.lang.NumberFormatException)
我的代码:(驱动程序没问题)
conn= java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/test","root","");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货