在我的电脑(xp)上没出现问题,换了个windows2003就出现了
com.mysql.jdbc.CommunicationsException: The driver was unable to create a connec
tion due to an inability to establish the client portion of a socket.This is usually caused by a limit on the number of sockets imposed by the operat
ing system. This limit is usually configurable.For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel o
r system reconfiguration may also be required.For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q19627
1).
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2820)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at upgradedb.DBUtil.getMySqlConn(DBUtil.java:32)
at upgradedb.MysqlDB.getAltEname(MysqlDB.java:109)
at upgradedb.XmlParse.parseTraitStrTrees(XmlParse.java:258)
at upgradedb.XmlParse.parseTraitItems(XmlParse.java:235)
at upgradedb.XmlParse.parseAll(XmlParse.java:75)
at upgradedb.UpgradeDBView$UpgradedbTask.doInBackground(UpgradeDBView.ja
va:454)
com.mysql.jdbc.CommunicationsException: The driver was unable to create a connec
tion due to an inability to establish the client portion of a socket.This is usually caused by a limit on the number of sockets imposed by the operat
ing system. This limit is usually configurable.For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel o
r system reconfiguration may also be required.For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q19627
1).
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2820)
at com.mysql.jdbc.Connection.<init>(Connection.java:1553)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java
:285)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at upgradedb.DBUtil.getMySqlConn(DBUtil.java:32)
at upgradedb.MysqlDB.getAltEname(MysqlDB.java:109)
at upgradedb.XmlParse.parseTraitStrTrees(XmlParse.java:258)
at upgradedb.XmlParse.parseTraitItems(XmlParse.java:235)
at upgradedb.XmlParse.parseAll(XmlParse.java:75)
at upgradedb.UpgradeDBView$UpgradedbTask.doInBackground(UpgradeDBView.ja
va:454)
解决方案 »
- mysql语句执行时间的问题
- 一个查询语句,求思想
- 【mysql问题】返回结果集存储在哪里????急急急~~~~~~~~~
- windows环境下用pgadmin备份的数据库文件 linux用不了?(急,在线等)
- MYSQL SELECT IN 语句的Bug?
- 怎样将Sql Server中的数据转换到My Sql 中?
- 这里太冷清了,发个问题大家讨论讨论,喜欢mysql的同志请举手!
- 如何实现按 where in () 中的顺序排序,find_in_set() 没有效果?
- 问一下这个语句该怎么写!!!
- mysql 的存储过程的问题
- MySql重复插入的问题
- navicat+mysql,float精度问题
ing system. This limit is usually configurable.检查你的操作系统的并发sockets 的允许数量。