{"id":6955,"date":"2017-09-07T15:28:04","date_gmt":"2017-09-07T15:28:04","guid":{"rendered":"https:\/\/www.cloudiqtech.com\/?p=6955"},"modified":"2019-09-13T06:01:58","modified_gmt":"2019-09-13T06:01:58","slug":"mysql-aurora-database-troubleshooting","status":"publish","type":"post","link":"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/","title":{"rendered":"MYSQL \/ AURORA Database Troubleshooting"},"content":{"rendered":"\n
\n

Here is a look at some of the common queries that will be useful when troubleshooting AURORA database.<\/p>\n

Number of Connections by Host<\/h5>\n
SELECT SUBSTRING(HOST, 1, 10) , DB,USER , COUNT(*) AS Count\n    FROM information_schema.processlist \n    group by SUBSTRING(HOST, 0, 10) , DB,USER \n    ORDER BY Count desc ;\n    -- '10.10.50.22', 'Portal', 'webguest-dev', '46'<\/code><\/pre>\n\n        
Aurora Max Connections<\/h5>\n
 select AURORA_VERSION();\n        select * from mysql.slow_log \n        where sql_text not like '%LOAD DATA%'\n        order by query_time desc\n        limit 1000 ;\n         \n        select count(*) from mysql.general_log \n        where user_host not like 'rdsadmin%'\n        and user_host not like '[rdsadmin]%'\n        and event_time > '2017-06-15 18:51:14';\n         \n        select current_timestamp();\n         \n        desc mysql.general_log  ;\n         \n        select @@MAX_CONNECTIONS\n        -- '4000'\n         \n        select *  from mysql.general_log \n        where command_type like '%Connect%';\n         \n        select *  from mysql.general_log_backup \n        where command_type like '%Connect%' ;\n         \n        SHOW GLOBAL STATUS LIKE '%Connection_errors%';\n         \n        SHOW STATUS WHERE `variable_name` = 'Threads_connected';<\/code><\/pre>\n        <\/div>\n","protected":false},"excerpt":{"rendered":"

Here is a look at some of the common queries that will be useful when troubleshooting AURORA database. Number of Connections by Host SELECT SUBSTRING(HOST, 1, 10) , DB,USER , COUNT(*) AS Count FROM information_schema.processlist group by SUBSTRING(HOST, 0, 10) , DB,USER ORDER BY Count desc ; — ‘10.10.50.22’, ‘Portal’, ‘webguest-dev’, ’46’ Aurora Max Connections […]<\/p>\n","protected":false},"author":3,"featured_media":7402,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"brizy-blank-template.php","format":"standard","meta":{"inline_featured_image":false},"categories":[30],"tags":[],"yoast_head":"\nMYSQL \/ AURORA Database Troubleshooting | CloudIQ Tech<\/title>\n<meta name=\"description\" content=\"Here is a look at some of the common queries that will be useful when troubleshooting AURORA database.\u00a0\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MYSQL \/ AURORA Database Troubleshooting | CloudIQ Tech\" \/>\n<meta property=\"og:description\" content=\"Here is a look at some of the common queries that will be useful when troubleshooting AURORA database.\u00a0\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudIQ Tech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/cloudiqtechnologies\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-09-07T15:28:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-13T06:01:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.cloudiqtech.com\/wp-content\/uploads\/2017\/09\/Blog_MYSQL-AURORA.png\" \/>\n\t<meta property=\"og:image:width\" content=\"650\" \/>\n\t<meta property=\"og:image:height\" content=\"430\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@cloudiqtech\" \/>\n<meta name=\"twitter:site\" content=\"@cloudiqtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Veeramani G\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cloudiqtech.com\/#website\",\"url\":\"https:\/\/www.cloudiqtech.com\/\",\"name\":\"CloudIQ Tech\",\"description\":\"Cloud Consulting and Solutioning Experts\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.cloudiqtech.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/www.cloudiqtech.com\/wp-content\/uploads\/2017\/09\/Blog_MYSQL-AURORA.png\",\"contentUrl\":\"https:\/\/www.cloudiqtech.com\/wp-content\/uploads\/2017\/09\/Blog_MYSQL-AURORA.png\",\"width\":650,\"height\":430},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#webpage\",\"url\":\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/\",\"name\":\"MYSQL \/ AURORA Database Troubleshooting | CloudIQ Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.cloudiqtech.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#primaryimage\"},\"datePublished\":\"2017-09-07T15:28:04+00:00\",\"dateModified\":\"2019-09-13T06:01:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.cloudiqtech.com\/#\/schema\/person\/17c57cdddd6ec22c64dbf4e5654a16bb\"},\"description\":\"Here is a look at some of the common queries that will be useful when troubleshooting AURORA database.\u00a0\",\"breadcrumb\":{\"@id\":\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.cloudiqtech.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MYSQL \/ AURORA Database Troubleshooting\"}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.cloudiqtech.com\/#\/schema\/person\/17c57cdddd6ec22c64dbf4e5654a16bb\",\"name\":\"Veeramani G\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudiqtech.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/460b21ad1d6ef74cfa3bfc91b7942464?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/460b21ad1d6ef74cfa3bfc91b7942464?s=96&d=mm&r=g\",\"caption\":\"Veeramani G\"},\"url\":\"https:\/\/www.cloudiqtech.com\/author\/veera\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MYSQL \/ AURORA Database Troubleshooting | CloudIQ Tech","description":"Here is a look at some of the common queries that will be useful when troubleshooting AURORA database.\u00a0","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:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/","og_locale":"en_US","og_type":"article","og_title":"MYSQL \/ AURORA Database Troubleshooting | CloudIQ Tech","og_description":"Here is a look at some of the common queries that will be useful when troubleshooting AURORA database.\u00a0","og_url":"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/","og_site_name":"CloudIQ Tech","article_publisher":"https:\/\/www.facebook.com\/cloudiqtechnologies\/","article_published_time":"2017-09-07T15:28:04+00:00","article_modified_time":"2019-09-13T06:01:58+00:00","og_image":[{"width":650,"height":430,"url":"https:\/\/www.cloudiqtech.com\/wp-content\/uploads\/2017\/09\/Blog_MYSQL-AURORA.png","type":"image\/png"}],"twitter_card":"summary_large_image","twitter_creator":"@cloudiqtech","twitter_site":"@cloudiqtech","twitter_misc":{"Written by":"Veeramani G","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/www.cloudiqtech.com\/#website","url":"https:\/\/www.cloudiqtech.com\/","name":"CloudIQ Tech","description":"Cloud Consulting and Solutioning Experts","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.cloudiqtech.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#primaryimage","inLanguage":"en-US","url":"https:\/\/www.cloudiqtech.com\/wp-content\/uploads\/2017\/09\/Blog_MYSQL-AURORA.png","contentUrl":"https:\/\/www.cloudiqtech.com\/wp-content\/uploads\/2017\/09\/Blog_MYSQL-AURORA.png","width":650,"height":430},{"@type":"WebPage","@id":"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#webpage","url":"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/","name":"MYSQL \/ AURORA Database Troubleshooting | CloudIQ Tech","isPartOf":{"@id":"https:\/\/www.cloudiqtech.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#primaryimage"},"datePublished":"2017-09-07T15:28:04+00:00","dateModified":"2019-09-13T06:01:58+00:00","author":{"@id":"https:\/\/www.cloudiqtech.com\/#\/schema\/person\/17c57cdddd6ec22c64dbf4e5654a16bb"},"description":"Here is a look at some of the common queries that will be useful when troubleshooting AURORA database.\u00a0","breadcrumb":{"@id":"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.cloudiqtech.com\/mysql-aurora-database-troubleshooting\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.cloudiqtech.com\/"},{"@type":"ListItem","position":2,"name":"MYSQL \/ AURORA Database Troubleshooting"}]},{"@type":"Person","@id":"https:\/\/www.cloudiqtech.com\/#\/schema\/person\/17c57cdddd6ec22c64dbf4e5654a16bb","name":"Veeramani G","image":{"@type":"ImageObject","@id":"https:\/\/www.cloudiqtech.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/460b21ad1d6ef74cfa3bfc91b7942464?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/460b21ad1d6ef74cfa3bfc91b7942464?s=96&d=mm&r=g","caption":"Veeramani G"},"url":"https:\/\/www.cloudiqtech.com\/author\/veera"}]}},"_links":{"self":[{"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/posts\/6955"}],"collection":[{"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/comments?post=6955"}],"version-history":[{"count":0,"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/posts\/6955\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/media\/7402"}],"wp:attachment":[{"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/media?parent=6955"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/categories?post=6955"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudiqtech.com\/wp-json\/wp\/v2\/tags?post=6955"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}