Change or Set MySQL Long Query Time Value for log-slow-queries बदलें या सेट MySQL लंबी क्वेरी समय मान लॉग-धीमी गति के लिए क्वेरियाँ
If you यदि आप enable slow queries log of MySQL database server धीमी क्वेरियाँ MySQL डाटाबेस सर्वर के प्रवेश को सक्षम , you will notice that from the slow query log file contains only SQL statements and queries that took more than query_time of 10 seconds to execute or run. , तुम नोटिस करेंगे कि से धीमी क्वेरी लॉग फ़ाइल केवल SQL बयान और उस पर अमल करने के लिए 10 सेकंड प्रश्नों के query_time से अधिक या चलाने लिया है. This is the default value or query time threshold for log_slow_queries function, which is 10 seconds. यह डिफ़ॉल्ट मान है या जो 10 सेकंड है log_slow_queries समारोह, क्वेरी के लिए समय सीमा है. 10 seconds is way too long for a SQL query to complete, so the value may be too high to capture any meaningful data. 10 सेकंड रास्ता बहुत लंबा पूरा करने के लिए एक SQL क्वेरी के लिए है, तो मान भी कोई सार्थक आंकड़ों पर कब्जा करने के लिए उच्च किया जा सकता है. You can alter or change the slow query time to lower value or number of seconds. आप बदल सकते हैं या कम मूल्य या सेकंड की संख्या में धीरे क्वेरी समय बदलता है.
You can set a new long_query_time in the MySQL configuration file, namely my.cnf or my.ini, normally located in /etc directory. तुम MySQL विन्यास फाइल में एक नया long_query_time, नामतः my.cnf या my.ini, सामान्य रूप से / आदि निर्देशिका में स्थित निर्धारित कर सकते हैं. Simply add the following line to the configuration file: बस कॉन्फ़िगरेशन फ़ाइल में निम्नलिखित पंक्ति जोड़ें:
long_query_time = 5 long_query_time = 5
Above option will set the slow or long query limit as 5 seconds, which means MySQL will capture and log all SQL queries that took longer than 5 seconds to execute and finish running to the log file. उपरोक्त विकल्प सेट करेंगे या लंबे क्वेरी सीमा जो MySQL कब्जा करेगा और उस पर अमल करने के लिए लंबे समय तक की तुलना में 5 सेकंड लिया और लॉग फाइल करने के लिए दौड़ खत्म सभी SQL क्वेरियाँ लॉग मतलब 5 सेकंड, के रूप में धीमा.
IMPORTANT : The page is machine translated and provided "as is" without warranty. महत्वपूर्ण: इस पृष्ठ है मशीन अनुवाद प्रदान की और "" के रूप में वारंटी के बिना है. Machine translation may be difficult to understand. मशीन अनुवाद को समझने में मुश्किल हो सकती है. Please refer to कृपया देखें original English article मूल अंग्रेजी लेख whenever possible. जब भी संभव हो सकता है.
Related Articles संबंधित लेख
- Enable Logging of Slow Queries (Slow Query Log) in MySQL Database सक्षम Logging धीरे प्रश्न (धीरे क्वेरी प्रवेश करें) के MySQL डाटाबेस में
- WordPress MySQL SQL Query Error in WPDB Class WordPress MySQL SQL क्वेरी त्रुटि WPDB में कक्षा
- Change and Reset MySQL root Password बदलें और रीसेट MySQL रूट पासवर्ड
- You Are Not Authorized to Execute SQL Queries in vBulletin Maintenance तुम नहीं Execute SQL प्रश्न करने vBulletin रखरखाव में अधिकृत हैं
- Fix for Munin MySQL Monitoring Plugin Graph Not Showing or Blank फिक्स Munin MySQL मॉनिटरिंग Plugin ग्राफ़ के लिए नहीं है या फिर खाली दिखा
- Using PHP-MySQL Persistent Connections to Run WordPress Blog का प्रयोग PHP-MySQL लगातार कनेक्सन्स भागो WordPress करने के लिए ब्लॉग
- Reset the Root Password of MySQL Server रीसेट MySQL सर्वर के रूट पासवर्ड
- Enable MySQL InnoDB Storage Engine Support in XAMPP Installation XAMPP में सक्षम MySQL InnoDB संग्रहण इंजन समर्थन स्थापना
- Installing Web Server in FreeBSD 6.0 with Apache 2.2, MySQL 5.0 and PHP 5 – Part 3 Installing वेब सर्वर FreeBSD 6,0 में Apache 2.2, 5.0 और MySQL PHP 5 के साथ - भाग 3
- AskEraser to Delete Private Search Queries in Ask.com AskEraser हटाएँ निजी खोज प्रश्न के लिए Ask.com में










































June 20th, 2007 00:43 जून, 20 2007 00:43
Stating that “10 seconds is way too long for a SQL query to complete” is slightly irresponsible, as 10 seconds might be perfectly reasonable for some queries to complete given the dataset and hardware being queried against combined with the complexity of the query. कहा कि "10 सेकंड रास्ता बहुत लंबा एक SQL क्वेरी के लिए" थोड़ा, के रूप में 10 सेकंड बिल्कुल कुछ प्रश्नों के लिए उचित हो सकता है गैर जिम्मेदार है पूर्ण करने के लिए क्वेरी की जटिलता के साथ संयुक्त queried के खिलाफ की जा रही dataset और हार्डवेयर दी पूरा करने के लिए निवेदन है.
Seeing as how this page is ranking quite high for people having performance issues with MySQL, I feel it is important to set this straight. कैसे इस पृष्ठ काफी लोगों MySQL के साथ प्रदर्शन मुद्दों करने के लिए उच्च रैंकिंग के रूप में देख रहा है, मैं इसे इस सीधे सेट करने के लिए महत्वपूर्ण है. One should not read this article and assume that their queries are performing unreasonably slow simply because they take over 10 seconds. यह एक लेख पढ़ा नहीं करना चाहिए और कहा कि उनके प्रश्नों अनुचित धीमी प्रदर्शन कर रहे हैं मान बस क्योंकि वे पर 10 सेकंड ले.