com.mysql.jdbc.exceptions.jdbc4.CommunicationsException
出现这样的问题 怎么办啊com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The driver was unable to create a connection 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 operating system. This limit is usually configurable.
For Unix-based platforms, see the manual page for the 'ulimit' command. Kernel or system reconfiguration may also be required.
搜索更多相关主题的帖子:
command required imposed usually
----------------解决方案--------------------------------------------------------
换一个mysql驱动试试,可能与你的mysql不匹配。
----------------解决方案--------------------------------------------------------