Default connection for mysql for client is maximum 100.
When connection exceed from 100, it will not accept another connection. In this case mysql throw error of too many connections. And to increase the limit of connections.
You need tot do setting for attribute max_connections t increase the connection limit. Linux:
/etc/my.cnf
max_connections=250
or whatever you want limit