Jump to content

Mysql Exception!


rameshfaj

Recommended Posts

Exception Occured while Connecting : com.mysql.jdbc.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.

 

For Windows-based platforms, see Microsoft Knowledge Base Article 196271 (Q196271).

 

 

What is the solution to this problem?Can anyone help me?

 

Link to comment
https://forums.phpfreaks.com/topic/109239-mysql-exception/
Share on other sites

Ok then how can I manage this problem:

Exception Occured while Connecting : com.mysql.jdbc.exceptions.MySQLNonTransientConnectionException: Data source rejected establishment of connection,  message from server: "Too many connections"

Exception Occured getLoggedInUsers: java.lang.NullPointerException

 

Link to comment
https://forums.phpfreaks.com/topic/109239-mysql-exception/#findComment-560365
Share on other sites

Really, you should make some effort to solve this. I found this in 30 seconds:

 

http://dev.mysql.com/doc/refman/5.0/en/too-many-connections.html

 

My guess would be:

 

a) Something is wrong with your OS

b) Something is wrong with your code, that makes it reconnect until the pool is dead

Link to comment
https://forums.phpfreaks.com/topic/109239-mysql-exception/#findComment-560373
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.