{"id":1909,"date":"2023-02-03T10:49:37","date_gmt":"2023-02-03T10:49:37","guid":{"rendered":"https:\/\/pheonixsolutions.com\/knowledge-base\/?p=1909"},"modified":"2023-02-03T10:52:17","modified_gmt":"2023-02-03T10:52:17","slug":"how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/","title":{"rendered":"How to enable the slow query log &#8211; Mysql in cPanel via terminal"},"content":{"rendered":"\n<p><strong>Introduction:<\/strong><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<br>$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>$ \/usr\/local\/cpanel\/scripts\/restartsrv_mysql<\/td><\/tr><\/tbody><\/table><\/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><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 $ ssh user@IP Step 2: Open ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/\" title=\"read more...\">Read more<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[33],"tags":[11],"class_list":["post-1909","post","type-post","status-publish","format-standard","hentry","category-whm","tag-mysql"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to enable the slow query log - Mysql in cPanel via terminal - PheonixSolutions Knowledge-Base<\/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\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to enable the slow query log - Mysql in cPanel via terminal - PheonixSolutions Knowledge-Base\" \/>\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 $ ssh user@IP Step 2: Open ..Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/\" \/>\n<meta property=\"og:site_name\" content=\"PheonixSolutions Knowledge-Base\" \/>\n<meta property=\"article:published_time\" content=\"2023-02-03T10:49:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-03T10:52:17+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: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\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/\"},\"author\":{\"name\":\"meenakshi k\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/baf2a3c7578108699459ee9dfee7211f\"},\"headline\":\"How to enable the slow query log &#8211; Mysql in cPanel via terminal\",\"datePublished\":\"2023-02-03T10:49:37+00:00\",\"dateModified\":\"2023-02-03T10:52:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/\"},\"wordCount\":331,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh6.googleusercontent.com\\\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y\",\"keywords\":[\"MySQL\"],\"articleSection\":[\"WHM\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/\",\"name\":\"How to enable the slow query log - Mysql in cPanel via terminal - PheonixSolutions Knowledge-Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh6.googleusercontent.com\\\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y\",\"datePublished\":\"2023-02-03T10:49:37+00:00\",\"dateModified\":\"2023-02-03T10:52:17+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/baf2a3c7578108699459ee9dfee7211f\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/#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\\\/knowledge-base\\\/2023\\\/02\\\/03\\\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to enable the slow query log &#8211; Mysql in cPanel via terminal\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/\",\"name\":\"PheonixSolutions Knowledge-Base\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/#\\\/schema\\\/person\\\/baf2a3c7578108699459ee9dfee7211f\",\"name\":\"meenakshi k\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&d=mm&r=g\",\"caption\":\"meenakshi k\"},\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/knowledge-base\\\/author\\\/meenakshi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to enable the slow query log - Mysql in cPanel via terminal - PheonixSolutions Knowledge-Base","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\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/","og_locale":"en_US","og_type":"article","og_title":"How to enable the slow query log - Mysql in cPanel via terminal - PheonixSolutions Knowledge-Base","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 $ ssh user@IP Step 2: Open ..Read more","og_url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/","og_site_name":"PheonixSolutions Knowledge-Base","article_published_time":"2023-02-03T10:49:37+00:00","article_modified_time":"2023-02-03T10:52:17+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_misc":{"Written by":"meenakshi k","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/"},"author":{"name":"meenakshi k","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/baf2a3c7578108699459ee9dfee7211f"},"headline":"How to enable the slow query log &#8211; Mysql in cPanel via terminal","datePublished":"2023-02-03T10:49:37+00:00","dateModified":"2023-02-03T10:52:17+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/"},"wordCount":331,"commentCount":0,"image":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y","keywords":["MySQL"],"articleSection":["WHM"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/","name":"How to enable the slow query log - Mysql in cPanel via terminal - PheonixSolutions Knowledge-Base","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/#primaryimage"},"thumbnailUrl":"https:\/\/lh6.googleusercontent.com\/FdzkvpCry7-exBtVQH1Wg2CcMTdiEECNCQ7mxYa7OFZ6T2FBsorVOTTxyh7pBPbyoNLivfwlkV87TE1RfVqj-C5ADNw4gR51tib2Vi3BvZqBOajiXrjrKQZMRjmRUZLHC3xlUvhPf_bBGZoPj6ZUG3Y","datePublished":"2023-02-03T10:49:37+00:00","dateModified":"2023-02-03T10:52:17+00:00","author":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/baf2a3c7578108699459ee9dfee7211f"},"breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/#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\/knowledge-base\/2023\/02\/03\/how-to-enable-the-slow-query-log-mysql-in-cpanel-via-terminal\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"How to enable the slow query log &#8211; Mysql in cPanel via terminal"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#website","url":"https:\/\/pheonixsolutions.com\/knowledge-base\/","name":"PheonixSolutions Knowledge-Base","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/knowledge-base\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/knowledge-base\/#\/schema\/person\/baf2a3c7578108699459ee9dfee7211f","name":"meenakshi k","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/17c0a3923b9a31a41d8de2fdc928e514efe879fe17b6e5d2814b7f81ed2356e5?s=96&d=mm&r=g","caption":"meenakshi k"},"url":"https:\/\/pheonixsolutions.com\/knowledge-base\/author\/meenakshi\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1909","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/comments?post=1909"}],"version-history":[{"count":2,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1909\/revisions"}],"predecessor-version":[{"id":1911,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/posts\/1909\/revisions\/1911"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=1909"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/categories?post=1909"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/knowledge-base\/wp-json\/wp\/v2\/tags?post=1909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}