Change or Set MySQL Long Query Time Value for log-slow-queries Zmena alebo nastavenie MySQL Dlhé Query Time Value for log-pomalé-otázky

If you Ak ste enable slow queries log of MySQL database server umožniť pomalé otázky log z databázového servera 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. , Všimnete si, že z pomalého dotaz log súbor obsahuje iba vyhlásenie, a SQL dotazy, ktoré trvalo viac ako query_time 10 sekúnd na vykonanie alebo spúšťať. This is the default value or query time threshold for log_slow_queries function, which is 10 seconds. Toto je predvolená hodnota alebo dotaz čas prah pre log_slow_queries funkcie, čo je o 10 sekúnd. 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 sekúnd, je príliš dlhá pre SQL dotaze dokončiť, takže hodnota môže byť príliš vysoká zachytiť akékoľvek zmysluplné údaje. You can alter or change the slow query time to lower value or number of seconds. Môžete meniť alebo zmeniť dotaz pomaly čas na nižšie hodnoty, alebo počet sekúnd.

You can set a new long_query_time in the MySQL configuration file, namely my.cnf or my.ini, normally located in /etc directory. Môžete si nastaviť nový long_query_time v MySQL konfiguračný súbor, a to my.cnf alebo my.ini, zvyčajne nachádza v adresári / etc adresára. Simply add the following line to the configuration file: Stačí pridať nasledujúci riadok do konfiguračného súboru:

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. Predovšetkým možnosť nastaviť pomalé a dlhé dotaz limitu 5 sekúnd, čo znamená, MySQL bude zachytávať a zaznamenávať všetky SQL dotazy, ktoré trvalo dlhšie ako 5 sekúnd vykonať a dokončiť beh do log súboru.

IMPORTANT : The page is machine translated and provided "as is" without warranty. Upozornenie: Stránka je stroje preložené a poskytované "tak ako sú" bez záruky. Machine translation may be difficult to understand. Strojový preklad môže byť ťažké pochopiť. Please refer to Obráťte sa prosím na original English article Anglický originál článku whenever possible. kedykoľvek je to možné.


One Response to “Change or Set MySQL Long Query Time Value for log-slow-queries” Jedna reakcia na "Zmeniť alebo Nastaviť MySQL Dlhé Query Time Value for log-pomalé-otázky"

  1. Todd Todd
    June 20th, 2007 00:43 20. júna 2007 00:43
    1 1

    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. Tvrdenie, že "10 sekúnd je príliš dlhá pre SQL dotaze na dokončenie" je trochu nezodpovedné, ako 10 sekúnd, môže byť úplne primeraný k nejaké otázky k danej dátové sady a hardware sú blokované proti kombinácii s zložitosti dotazu.

    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. Vidieť, ako je táto stránka rebríčku pomerne vysoký výkon pre ľudí s problémami s MySQL, cítim, že je dôležité, aby bola táto rovno. One should not read this article and assume that their queries are performing unreasonably slow simply because they take over 10 seconds. Jeden by nemal čítať tento článok, a predpokladáme, že ich požiadavky sú plnenia bezdôvodne pomalou len preto, že mať viac ako 10 sekúnd.

Leave a Reply Nechaj Odpoveď

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Môžete použiť tieto značky: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. Vyberajte komentáre funkcia bola vypnutá. To receive notification of latest comments posted, subscribe to Ak chcete dostávať oznámenie o najnovšie komentáre posta, prihláste sa My Digital Life Comments RSS feed My Digital Life Komentáre RSS or alebo register to receive register pre príjem new comments in daily email digest. nové komentáre v dennom email Digest.
Custom Search

New Articles Nové články

Incoming Search Terms for the Article Incoming Vyhľadávanie Podmienky pre článok

mysql long query time mysql dotaz dlhej dobe - -- long query time dotaz dlhej dobe - -- mysql long_query_time mysql long_query_time - -- mysql long queries mysql dlhá otázky - -- log-slow-queries log-pomalé-otázky - -- long-query-time dlho-query-time - -- mysql long-query-time mysql-query-dlhá doba - -- long query time mysql dlhý čas dotazu mysql - -- mysql max query time mysql dotazu max čas - -- log slow queries log pomalé otázky - -- mysql long mysql dlhá - -- Slow query time Pomalé dotaz čas - -- long_query_time mysql long_query_time mysql - -- mysql slow query time mysql pomalý dotaz čas - -- mysql set log_slow_queries mysql nastaviť log_slow_queries - -- mysql slow query time mysql pomalý dotaz čas - -- mysql long query mysql dlhá dotaz - -- mysql change value mysql zmeniť hodnotu - -- mysql query time limit mysql dotaz lehote - -- mysql set time limit mysql stanovenej lehote - -- set mysql nastaviť MySQL - -- set log-slow-queries set log-pomalé-otázky - -- mysql log query time mysql log dotaz čas - -- mysql query time mysql dotaz čas - -- long queries mysql dlho dotazov mysql - -- mysql long query log mysql dlhý dotaz log - -- mysql limit query time mysql limit dotazu čas - -- mysql set long_query_time mysql nastaviť long_query_time - -- MySQL + long request MySQL + dlhý dotaz - -- mysql query_time seconds mysql query_time sekúnd - -- mysql sql query time limit mysql sql dotaz lehote - -- long mysql query dlho mysql dotaz - -- long query time my.cnf dlhý čas dotazu my.cnf - -- mysql query taking long time mysql dotaz pričom dlho - -- set long time query in mysql nastaviť dlhý čas dotazu v mysql - -- mysql set long query time mysql nastaviť dlhý čas dotazu - -- mysql Query_time mysql Query_time - -- mysql set @@global.log_slow_queries mysql set @ @ global.log_slow_queries - -- mysql log long queries mysql log dlho otázky - -- log long query mysql log dlhý dotaz mysql - -- mysql_slow_query.log Query_time mysql_slow_query.log Query_time - -- slow-query-time pomalé-query-time - -- mysql 5.0 long_query_time mysql 5.0 long_query_time - -- slow query log time pomalý dotaz log čas - -- mysql "set @@log" mysql "súbor @ @ log" - -- set time for slow query log in mysql nastaviť čas pre pomalé dotaz prihlásiť mysql - -- long-query-time mysql dlho-query-time mysql - -- Query_time slow query Query_time pomalý dotaz - -- mysql set slow query threshold mysql nastaviť pomalý otázku prah - -- mysql change log_slow_queries mysql zmeniť log_slow_queries - --