初学hibernate,欲用myeclipse dbbrowser 打开数据库表以自动生成pojo文件,却老是出错,但是在程序里面连接数据库没有问题,可以正常进行查删改。数据库为mysql5.1DB browser打开连接错误提示如下:
Error while performing database login with the papers driver:Communication link failure.last packet sent to the server was 0 ms ago即使是myeclipse 自带的数据库MyEclipse Derby也无法连接,错误提示如下:
Error while performing database login with the MyEclipse Derby driver:java.net.SocketException:Error connecting to server localhost on port 1527 with message Permission denied:connect.前天晚上还是很正常的,昨天上午一打开就出现这个问题,一直无法解决,在网上搜索了很久,有人说是连接超时,我改了my.ini,在mysqld下加了wait
-timeout这个项目,值为10年,没有解决问题。接下来,防火墙关了,没有解决问题。试了很多方法都没有解决,于是我重装了mysql,没用,重装了myeclipse并由6.0换成6.6,没有用。
望高手帮忙解决。
非常感谢大家。
Error while performing database login with the papers driver:Communication link failure.last packet sent to the server was 0 ms ago即使是myeclipse 自带的数据库MyEclipse Derby也无法连接,错误提示如下:
Error while performing database login with the MyEclipse Derby driver:java.net.SocketException:Error connecting to server localhost on port 1527 with message Permission denied:connect.前天晚上还是很正常的,昨天上午一打开就出现这个问题,一直无法解决,在网上搜索了很久,有人说是连接超时,我改了my.ini,在mysqld下加了wait
-timeout这个项目,值为10年,没有解决问题。接下来,防火墙关了,没有解决问题。试了很多方法都没有解决,于是我重装了mysql,没用,重装了myeclipse并由6.0换成6.6,没有用。
望高手帮忙解决。
非常感谢大家。
连不上大多都是数据库的问题,
跟LZ一样加超时时间,
我也曾怀疑是驱动问题,但写代码测过了,JDBC没有任何问题,
用mysql front也可以正常连接到数据库。等待高人回复中