{"id":6305,"date":"2021-06-05T22:57:49","date_gmt":"2021-06-05T17:27:49","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=6305"},"modified":"2021-06-05T22:57:53","modified_gmt":"2021-06-05T17:27:53","slug":"host-host_name-is-blocked","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/host-host_name-is-blocked\/","title":{"rendered":"Host host_name is blocked"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">If the mysqld server receives too many connection requests from the host that is interrupted in the middle, the following error occurs:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-54-27.png\"><img decoding=\"async\" width=\"495\" height=\"65\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-54-27.png\" alt=\"\" class=\"wp-image-6306\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-54-27.png 495w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-54-27-300x39.png 300w\" sizes=\"(max-width: 495px) 100vw, 495px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The max_connect_errors system variable determines the number of successive\u00a0interrupted connection requests that are allowed. Once there are max_connect_errors\u00a0failed requests without a successful connection, mysqld assumes that something is wrong\u00a0and blocks the host from further connections until the FLUSH HOSTS statement or\u00a0mysqladmin flush-hosts command is issued.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">mysqld blocks a host after 100 connection errors as a default. It can be adjusted by setting\u00a0the max_connect_errors value on the server startup, as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-55-31.png\"><img decoding=\"async\" width=\"330\" height=\"25\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-55-31.png\" alt=\"\" class=\"wp-image-6307\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-55-31.png 330w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-55-31-300x23.png 300w\" sizes=\"(max-width: 330px) 100vw, 330px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">This value can also be set up at runtime, as follows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-56-11.png\"><img decoding=\"async\" width=\"350\" height=\"25\" src=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-56-11.png\" alt=\"\" class=\"wp-image-6308\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-56-11.png 350w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2021\/06\/Screenshot-from-2021-06-05-22-56-11-300x21.png 300w\" sizes=\"(max-width: 350px) 100vw, 350px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">It should be checked first that there is nothing wrong with TCP\/IP connections from the\u00a0host if the host_name is blocked error is received for a particular host. Increasing the value\u00a0of the max_connect_errors variable does not help if the network has problems.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If the mysqld server receives too many connection requests from the host that is interrupted in the middle, the following [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1022],"tags":[869,870,179],"class_list":["post-6305","post","type-post","status-publish","format-standard","hentry","category-web-architecture","tag-host-host_name-is-blocked","tag-host-name","tag-mysql-2","psol-cat-web-architecture"],"jetpack_publicize_connections":[],"jetpack_shortlink":"https:\/\/wp.me\/phn2x7-1DH","jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=6305"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/6305\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=6305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=6305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=6305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}