Sorry! Application Error (Error Code:31)

Error message:
Failed to connect to db:Unable to connect to db server. Error:SQLSTATE[HY000] [1040] Too many connections