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:
or whatever you want limit