显示the last packet sent successfully to the server was 0 milliseconds ago


各位高手请教了
原因是本人最近在学hibernate这个连不上好麻烦
再次感谢大家


各位高手请教了


解决方案
10
URL后面的3306后面的数据库名哪里去了?数据库怎么知道你连接的那个数据库,你这样怎么查找?
一般的写法jdbc:mysql://123.57.236.168:3306/emp?
一般的写法jdbc:mysql://123.57.236.168:3306/emp?
10
是的,本人试了一下,确实不添加dbname也是可以的。两种都可以看到mysql里面的全部的表,暂时还不清楚有什么区别。