proxy_debug(PROXY_DEBUG_MYSQL_CONNECTION,5,"Too many connections\n");
*wrong_pass=true;
client_myds->setDSS_STATE_QUERY_SENT_NET();
client_myds->myprot.generate_pkt_ERR(true,NULL,NULL,2,1040,(char*)"#HY000",(char*)"Too many connections");
if(max_connections_reached==true){
proxy_debug(PROXY_DEBUG_MYSQL_CONNECTION,5,"Too many connections\n");
client_myds->myprot.generate_pkt_ERR(true,NULL,NULL,2,1040,(char*)"08004",(char*)"Too many connections");
}else{// see issue #794
proxy_debug(PROXY_DEBUG_MYSQL_CONNECTION,5,"User '%s' has exceeded the 'max_user_connections' resource (current value: %d)\n",client_myds->myconn->userinfo->username,used_users);
char*a=(char*)"User '%s' has exceeded the 'max_user_connections' resource (current value: %d)";