<br />
<b>Notice</b>:  Function _load_textdomain_just_in_time was called <strong>incorrectly</strong>. Translation loading for the <code>breadcrumb-navxt</code> domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the <code>init</code> action or later. Please see <a href="https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/">Debugging in WordPress</a> for more information. (This message was added in version 6.7.0.) in <b>/home/devtools/public_html/blog/wp-includes/functions.php</b> on line <b>6131</b><br />
{"id":497,"date":"2012-03-05T19:06:00","date_gmt":"2012-03-05T22:06:00","guid":{"rendered":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/"},"modified":"2021-09-04T17:55:32","modified_gmt":"2021-09-04T20:55:32","slug":"error-no-1040-too-many-connections-no-mysql","status":"publish","type":"post","link":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/","title":{"rendered":"Error No. 1040 &#8211; Too many connections no MySQL"},"content":{"rendered":"\n<p>Hoje ao tentar acessar um servidor de banco de dados, recebi a seguinte mensagem de erro:<\/p>\n\n\n\n<p><b><i>Erro: Too many connections<\/i><\/b><br><b><i><br><\/i><\/b>Mas do que se trata este erro? Vejamos o que nos diz a documenta\u00e7\u00e3o do MySQL:<\/p>\n\n\n\n<p>&#8220;<i>A.2.6. Erro: Too many connections<\/i><br><i>Se voc\u00ea obter o erro Too many connections quando vac\u00ea tentar se conectar ao MySQL, isto significa que j\u00e1 existe max_connections clientes conectados ao servidor mysqld.<\/i><br><i><br><\/i><i>Se voc\u00ea precisar de mais conex\u00f5es do que o padr\u00e3o (100), ent\u00e3o voc\u00ea deve reiniciar o mysqld com um valor maior para a vari\u00e1vel max_connections.<\/i><br><i><br><\/i><i>Note que atualmente o mysqld permite que (max_connections+1) clientes se conectem. A \u00faltima conex\u00e3o \u00e9 reservada para um usu\u00e1rio com o privil\u00e9gio SUPER. Ao n\u00e3o dar este privil\u00e9gio a usu\u00e1rios normais (eles n\u00e3o precisam dele), um administrador com este privil\u00e9gio pode logar e utilizar SHOW PROCESSLIST para descobrir o que pode estar errado. See Sec\u00e7\u00e3o 4.6.8.6, \u201cSHOW PROCESSLIST\u201d.<\/i><br><i><br><\/i><i>O n\u00famero m\u00e1ximo de conex\u00f5es MySQL depende de qu\u00e3o boa \u00e9 a biblioteca de threads na dada plataforma. Linux ou Solaris devem estar aptos a suportar 500-1000 conex\u00f5es simult\u00e2neas, dependendo de quanta RAM voc\u00ea tem e do que o cliente est\u00e1 fazendo<\/i>.&#8221;<\/p>\n\n\n\n<p>Por padr\u00e3o o max_connections do arquivo&nbsp;my.cnf \u00e9 100, mas pode ser alterado:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code> set-variable = max_connections=100  \n<\/code><\/pre>\n\n\n\n<p>Quando falamos em conex\u00e3o, estamos falando em um comando que \u00e9 enviado ao banco de dados e que ap\u00f3s ser realizado a conex\u00e3o aberta deve ser fechada, este controle de conex\u00f5es \u00e9 feito pelo pool de conex\u00f5es da aplica\u00e7\u00e3o (Ex: Spring).<\/p>\n\n\n\n<p>O padr\u00e3o adotado pelo banco de dados (100) j\u00e1 suporta sistemas de grande porte, pois \u00e9 muito dif\u00edcil que tenhamos mais de 100 usu\u00e1rios realizando alguma opera\u00e7\u00e3o no mesmo momento, mas, mesmo que seja no mesmo momento (Algo meio improv\u00e1vel) alguma conex\u00e3o ir\u00e1 se abrir primeiro, e ap\u00f3s se fechar a pr\u00f3xima chamada ser\u00e1 realizada.<\/p>\n\n\n\n<p>Para se aprofundar mais no assunto, pesquise tamb\u00e9m por&nbsp;max_user_connections,&nbsp;wait_timeout e&nbsp;max_connect_errors.<\/p>\n\n\n\n<p>Espero mais uma vez ter sudo \u00fatil, abra\u00e7os.<\/p>\n\n\n\n<p>Material de refer\u00eancia\/fonte:<br><a href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.5\/en\/too-many-connections.html\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/dev.mysql.com\/doc\/refman\/5.5\/en\/too-many-connections.html<\/a><br><a href=\"http:\/\/www.devdb.com.br\/banco-de-dados\/mysql\/resolvendo-e-contornando-o-erro-too-many-connections-no-mysql\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/www.devdb.com.br\/banco-de-dados\/mysql\/resolvendo-e-contornando-o-erro-too-many-connections-no-mysql<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hoje ao tentar acessar um servidor de banco de dados, recebi a seguinte mensagem de erro: Erro: Too many connectionsMas do que se trata este erro? Vejamos o que nos diz a documenta\u00e7\u00e3o do MySQL: &#8220;A.2.6. Erro: Too many connectionsSe voc\u00ea obter o erro Too many connections quando vac\u00ea tentar se conectar ao MySQL, isto &#8230; <a title=\"Error No. 1040 &#8211; Too many connections no MySQL\" class=\"read-more\" href=\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/\" aria-label=\"More on Error No. 1040 &#8211; Too many connections no MySQL\">Ler mais<\/a><\/p>\n","protected":false},"author":1,"featured_media":1325,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[272,49],"tags":[],"class_list":["post-497","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-banco-de-dados","category-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Error No. 1040 - Too many connections no MySQL<\/title>\n<meta name=\"description\" content=\"Orienta\u00e7\u00f5es como o que \u00e9 e como solucionar o erro Error No. 1040 - Too many connections no MySQL\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Error No. 1040 - Too many connections no MySQL\" \/>\n<meta property=\"og:description\" content=\"Orienta\u00e7\u00f5es como o que \u00e9 e como solucionar o erro Error No. 1040 - Too many connections no MySQL\" \/>\n<meta property=\"og:url\" content=\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/\" \/>\n<meta property=\"og:site_name\" content=\"Devtools\" \/>\n<meta property=\"article:published_time\" content=\"2012-03-05T22:06:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-09-04T20:55:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"341\" \/>\n\t<meta property=\"og:image:height\" content=\"352\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Fabiano Abreu\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fabiano Abreu\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. tempo de leitura\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/\"},\"author\":{\"name\":\"Fabiano Abreu\",\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed\"},\"headline\":\"Error No. 1040 &#8211; Too many connections no MySQL\",\"datePublished\":\"2012-03-05T22:06:00+00:00\",\"dateModified\":\"2021-09-04T20:55:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/\"},\"wordCount\":392,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed\"},\"image\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg\",\"articleSection\":[\"Banco de Dados\",\"MySQL\"],\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/\",\"url\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/\",\"name\":\"Error No. 1040 - Too many connections no MySQL\",\"isPartOf\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg\",\"datePublished\":\"2012-03-05T22:06:00+00:00\",\"dateModified\":\"2021-09-04T20:55:32+00:00\",\"description\":\"Orienta\u00e7\u00f5es como o que \u00e9 e como solucionar o erro Error No. 1040 - Too many connections no MySQL\",\"breadcrumb\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#breadcrumb\"},\"inLanguage\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#primaryimage\",\"url\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg\",\"contentUrl\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg\",\"width\":341,\"height\":352},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/devtools.com.br\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Error No. 1040 &#8211; Too many connections no MySQL\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/devtools.com.br\/blog\/#website\",\"url\":\"https:\/\/devtools.com.br\/blog\/\",\"name\":\"Devtools\",\"description\":\"Sua caixa de ferramentas online\",\"publisher\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/devtools.com.br\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-BR\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed\",\"name\":\"Fabiano Abreu\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2022\/07\/Fabiano-Abreu.png\",\"contentUrl\":\"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2022\/07\/Fabiano-Abreu.png\",\"width\":184,\"height\":184,\"caption\":\"Fabiano Abreu\"},\"logo\":{\"@id\":\"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/devtools.com.br\/blog\"],\"url\":\"https:\/\/devtools.com.br\/blog\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Error No. 1040 - Too many connections no MySQL","description":"Orienta\u00e7\u00f5es como o que \u00e9 e como solucionar o erro Error No. 1040 - Too many connections no MySQL","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/","og_locale":"pt_BR","og_type":"article","og_title":"Error No. 1040 - Too many connections no MySQL","og_description":"Orienta\u00e7\u00f5es como o que \u00e9 e como solucionar o erro Error No. 1040 - Too many connections no MySQL","og_url":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/","og_site_name":"Devtools","article_published_time":"2012-03-05T22:06:00+00:00","article_modified_time":"2021-09-04T20:55:32+00:00","og_image":[{"width":341,"height":352,"url":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg","type":"image\/jpeg"}],"author":"Fabiano Abreu","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"Fabiano Abreu","Est. tempo de leitura":"2 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#article","isPartOf":{"@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/"},"author":{"name":"Fabiano Abreu","@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed"},"headline":"Error No. 1040 &#8211; Too many connections no MySQL","datePublished":"2012-03-05T22:06:00+00:00","dateModified":"2021-09-04T20:55:32+00:00","mainEntityOfPage":{"@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/"},"wordCount":392,"commentCount":0,"publisher":{"@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed"},"image":{"@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg","articleSection":["Banco de Dados","MySQL"],"inLanguage":"pt-BR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/","url":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/","name":"Error No. 1040 - Too many connections no MySQL","isPartOf":{"@id":"https:\/\/devtools.com.br\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#primaryimage"},"image":{"@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#primaryimage"},"thumbnailUrl":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg","datePublished":"2012-03-05T22:06:00+00:00","dateModified":"2021-09-04T20:55:32+00:00","description":"Orienta\u00e7\u00f5es como o que \u00e9 e como solucionar o erro Error No. 1040 - Too many connections no MySQL","breadcrumb":{"@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#primaryimage","url":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg","contentUrl":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2012\/03\/Error_too-many-connections.jpg","width":341,"height":352},{"@type":"BreadcrumbList","@id":"https:\/\/devtools.com.br\/blog\/error-no-1040-too-many-connections-no-mysql\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/devtools.com.br\/blog\/"},{"@type":"ListItem","position":2,"name":"Error No. 1040 &#8211; Too many connections no MySQL"}]},{"@type":"WebSite","@id":"https:\/\/devtools.com.br\/blog\/#website","url":"https:\/\/devtools.com.br\/blog\/","name":"Devtools","description":"Sua caixa de ferramentas online","publisher":{"@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/devtools.com.br\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-BR"},{"@type":["Person","Organization"],"@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/aa3425fdfdefa404466fc49f6d122eed","name":"Fabiano Abreu","image":{"@type":"ImageObject","inLanguage":"pt-BR","@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/image\/","url":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2022\/07\/Fabiano-Abreu.png","contentUrl":"https:\/\/devtools.com.br\/blog\/wp-content\/uploads\/2022\/07\/Fabiano-Abreu.png","width":184,"height":184,"caption":"Fabiano Abreu"},"logo":{"@id":"https:\/\/devtools.com.br\/blog\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/devtools.com.br\/blog"],"url":"https:\/\/devtools.com.br\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/posts\/497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":2,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/posts\/497\/revisions"}],"predecessor-version":[{"id":1326,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/posts\/497\/revisions\/1326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/media\/1325"}],"wp:attachment":[{"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/media?parent=497"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/categories?post=497"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devtools.com.br\/blog\/wp-json\/wp\/v2\/tags?post=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}