{"id":7060,"date":"2023-02-03T16:26:05","date_gmt":"2023-02-03T10:56:05","guid":{"rendered":"https:\/\/pheonixsolutions.com\/blog\/?p=7060"},"modified":"2023-02-03T16:27:22","modified_gmt":"2023-02-03T10:57:22","slug":"how-to-enable-the-slow-query-log-mysql-in-linux","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/","title":{"rendered":"How to enable the slow query log &#8211; Mysql in Linux"},"content":{"rendered":"\n<p><strong>Introduction:<\/strong><\/p>\n\n\n\n<p><br>MySQL&#8217;s slow query log makes it easy to track SQL queries that take more than a specific time for execution. This allows you to find inefficient SQL queries that can be optimized to improve database performance.<br><br><strong>Prerequisite:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>A user with sudo privileges<\/li>\n\n\n\n<li>Mysql Database must be installed&nbsp;<\/li>\n\n\n\n<li>Mysql credentials (if secured)<\/li>\n<\/ol>\n\n\n\n<p><strong>Implementation:<\/strong><\/p>\n\n\n\n<p>Step 1: SSH the server with the user having sudo privileges<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ ssh user@IP<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Step 2: Open the mysqld.cnf file from the path \/etc\/mysql\/mysql.conf.d\/ with vi editor or nano editor<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ cd \/etc\/mysql\/mysql.conf.d\/$ vi mysqld.cnf<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 3: Search for the parameter slow_query_log and edit the existing setup as mentioned&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>slow_query_log = 1slow-query_log_file = \/var\/log\/mysql\/mysql-slow.loglong_query_time = 2<br><br>======<br>Change the long query time as per the requirement in seconds.&nbsp;<br>======<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/48HOe-qhYjQU_MXIvnkyK1AxMx0ttUlg3Uk4DPX9HPs3if0IkuZ8A23mIa3epa4M_H3CIkXFvWEfwB-kLOe6xN8ZywjEM3ot9yXQcKS7VYspbdXvjMphoAaNMjhQ5G2wUPBKIi9noMH6i8CAAdTqcJE\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 4: Create the mysql-slow.log file in the path as mentioned in the parameter slow-query_log_file in step 3&nbsp; and set its user as the mysql user<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$touch \/var\/log\/mysql\/mysql-slow.log$chown mysql:mysql \/var\/log\/mysql\/mysql-slow.log<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Step 5: Restart MySQL service&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ systemctl restart mysql<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/_ifCAA_36j3FtUJKGZPg5lSQDSFPxwVTkHMEONaopwKcOsvvvH5_OdJJUhviwbH7ng2W5Pl0lprtAf3u4YJ9Dtf_XAUGlDByGVKxH2ckNNyO-cGQq7x3qchblNuTcbf29wU18AYpZU5SwVEbOdxMmTo\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 6: To save all slow queries that the system previously recorded in the mysql-slow.log file&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ mysqldumpslow -a \/var\/log\/mysql\/mysql-slow.log<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh5.googleusercontent.com\/zkLRtCvahqBNLbJmKP0jVkwwm3-sxzLOlGzEoyORb9DWZRsV7GbXstuSZVdh1Q6KWQNUIQs6kf-d7rIVAnsGUWzwZX--Z9YmEbFRfvn7qjIwOmjjkbYMXz0Ok__MT8Z5nWx-Ci3m1fPb6FgcATnikLE\" alt=\"\" \/><\/figure>\n\n\n\n<p>Step 7: To verify this setup log in to MySQL database server<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>$ mysql -u root -p<br>====<br>Enter the root user password<br>====<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Step 8: Run the below query to verify whether the slow query log has been enabled or not<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>SHOW GLOBAL VARIABLES LIKE &#8216;slow_query_log%&#8217;;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/XCAZ4S_wSVv_A5PXpI94rkQAtOTARXcYmk3BPWZ7zPiP-O_VvC2UH2Dd-poA0Xv_Nx6XOmyWwf5D44hJyagaqcdZUvOXd-vB59hMqP5duARlbbH8yqpIEy0b7jEniEz3WbxdRlrW6af20AuS5JQ5mqo\" alt=\"\" \/><\/figure>\n\n\n\n<p><br>If the slow_query_log value is ON, we can confirm that the slow query log has been enabled successfully<\/p>\n\n\n\n<p><strong>Conclusion:<\/strong><br><br>By enabling the slow query log for MySQL we can diagnose the performance and efficiency issues that affect the server.<br>By identifying queries that are particularly slow in their execution, we can address them while restructuring the application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction: MySQL&#8217;s slow query log makes it easy to track SQL queries that take more than a specific time for execution. This allows you to find inefficient SQL queries that can be optimized to improve database performance. Prerequisite: Implementation: Step 1: SSH the server with the user having sudo privileges&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">How to enable the slow query log &#8211; Mysql in Linux<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":495,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_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":""},"categories":[284,369,386,387,282],"tags":[179],"class_list":{"0":"post-7060","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-centos","7":"category-cpanel-controlpanel","8":"category-database","9":"category-mysql-database","10":"category-ubuntu","11":"tag-mysql-2","12":"h-entry","14":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"Introduction: MySQL&#8217;s slow query log makes it easy to track SQL queries that take more than a specific time for execution. This allows you to find inefficient SQL queries that can be optimized to improve database performance. Prerequisite: Implementation: Step 1: SSH the server with the user having sudo privileges&hellip; Continue Reading How to enable the slow query log &#8211; Mysql in Linux\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-03T10:56:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-03T10:57:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y\" \/>\n<meta name=\"author\" content=\"meenakshi k\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"meenakshi k\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/\"},\"author\":{\"name\":\"meenakshi k\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d573de3a2c02cbeca49e90581a88b98f\"},\"headline\":\"How to enable the slow query log &#8211; Mysql in Linux\",\"datePublished\":\"2023-02-03T10:56:05+00:00\",\"dateModified\":\"2023-02-03T10:57:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/\"},\"wordCount\":326,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh6.googleusercontent.com\\\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y\",\"keywords\":[\"mysql\"],\"articleSection\":[\"Centos\",\"cPanel\",\"Database\",\"Mysql\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh6.googleusercontent.com\\\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y\",\"datePublished\":\"2023-02-03T10:56:05+00:00\",\"dateModified\":\"2023-02-03T10:57:22+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/lh6.googleusercontent.com\\\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y\",\"contentUrl\":\"https:\\\/\\\/lh6.googleusercontent.com\\\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/how-to-enable-the-slow-query-log-mysql-in-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to enable the slow query log &#8211; Mysql in Linux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/d573de3a2c02cbeca49e90581a88b98f\",\"name\":\"meenakshi k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&r=g\",\"caption\":\"meenakshi k\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/meenakshi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"Introduction: MySQL&#8217;s slow query log makes it easy to track SQL queries that take more than a specific time for execution. This allows you to find inefficient SQL queries that can be optimized to improve database performance. Prerequisite: Implementation: Step 1: SSH the server with the user having sudo privileges&hellip; Continue Reading How to enable the slow query log &#8211; Mysql in Linux","og_url":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2023-02-03T10:56:05+00:00","article_modified_time":"2023-02-03T10:57:22+00:00","og_image":[{"url":"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y","type":"","width":"","height":""}],"author":"meenakshi k","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"meenakshi k","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/"},"author":{"name":"meenakshi k","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/d573de3a2c02cbeca49e90581a88b98f"},"headline":"How to enable the slow query log &#8211; Mysql in Linux","datePublished":"2023-02-03T10:56:05+00:00","dateModified":"2023-02-03T10:57:22+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/"},"wordCount":326,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y","keywords":["mysql"],"articleSection":["Centos","cPanel","Database","Mysql","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/","url":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/#primaryimage"},"thumbnailUrl":"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y","datePublished":"2023-02-03T10:56:05+00:00","dateModified":"2023-02-03T10:57:22+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/#primaryimage","url":"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y","contentUrl":"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y"},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/how-to-enable-the-slow-query-log-mysql-in-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to enable the slow query log &#8211; Mysql in Linux"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/d573de3a2c02cbeca49e90581a88b98f","name":"meenakshi k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&r=g","caption":"meenakshi k"},"url":"https:\/\/pheonixsolutions.com\/blog\/author\/meenakshi\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-1PS","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7060","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\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=7060"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/7060\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=7060"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=7060"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=7060"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}