Change or Set MySQL Long Query Time Value for log-slow-queries Schimbarea sau set de interogări MySQL Long Time Value pentru log-lent-interogări

If you Dacă enable slow queries log of MySQL database server permite lent jurnalul de interogări MySQL server de baze de date , 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. , Veţi observa că de la lent interogare fişier de log conţine numai declaraţii SQL şi interogări, care a avut mai mult de query_time de 10 secunde pentru a executa sau executa. This is the default value or query time threshold for log_slow_queries function, which is 10 seconds. Aceasta este valoarea implicită sau de interogare dată pragul pentru log_slow_queries funcţie, care este de 10 de secunde. 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 secunde este mult prea lung pentru o interogare SQL pentru a completa, asa ca valoarea poate fi prea mare pentru a capta orice semnificativ de date. You can alter or change the slow query time to lower value or number of seconds. Puteţi modifica sau schimba lent, timp de interogare pentru a mai mică valoare sau de numărul de secunde.

You can set a new long_query_time in the MySQL configuration file, namely my.cnf or my.ini, normally located in /etc directory. Puteţi seta un nou long_query_time în fişierul de configurare al MySQL, si anume sau my.ini my.cnf astfel, în mod normal, localizate în / etc directorul. Simply add the following line to the configuration file: Pur şi simplu adăugaţi următoarea linie în fişierul de configurare:

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. Opţiunea de mai sus se va stabili de ritmul lent de timp sau de interogare ca limită de 5 secunde, ceea ce înseamnă MySQL şi vă va capta toate interogările SQL, care a avut mai mult de 5 secunde pentru a executa şi de a termina execută fişierul jurnal.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. IMPORTANT: Aceasta este o pagină de masina de tradus, care este furnizat "ca atare", fără garanţie. Machine translation may be difficult to understand. Machine traducere poate fi dificil de înţeles. Please refer to Vă rugăm să original English article articol original English whenever possible. ori de câte ori este posibil.

Share and contribute or get technical support and help at Ponderea şi de a contribui sau a obţine asistenţă tehnică şi de a ajuta la My Digital Life Forums Meu digital viaţă forumuri .



One Response to “Change or Set MySQL Long Query Time Value for log-slow-queries” Unul Răspuns la "Modificare sau set de interogări MySQL Long Time Value pentru log-lent-interogări"

  1. Todd
    June 20th, 2007 00:43 20 iunie 2007 00:43
    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. Declarând că "în 10 secunde este mult prea lung pentru o interogare SQL pentru a completa" este puţin iresponsabil, ca 10 secunde ar putea fi perfect rezonabil pentru câteva interogări pentru a încheia, având în vedere datele şi hardware-ul fiind queried împotriva combinată cu complexitatea interogare.

    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. One should not read this article and assume that their queries are performing unreasonably slow simply because they take over 10 seconds. Unul nu ar trebui să citiţi acest articol şi să-şi asume lor care efectuează interogări sunt excesiv de lent, pur şi simplu pentru că le iau peste 10 de secunde.

Leave a Reply Lasă un Răspuns

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> Puteţi folosi aceste tag-uri: <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. Abonare la comentarii facilitate a fost dezactivat. To receive notification of latest comments posted, subscribe to Pentru a primi notificarea de mai recente comentarii postate, abonaţi la My Digital Life Comments RSS feed Meu digital viaţă Comentarii RSS Feed or sau register to receive înregistrează-te pentru a primi new comments in daily email digest. noi comentarii în rezumat zilnic de email.
Custom Search

New Articles Articole noi

Incoming Search Terms for the Article Pe punctul de a sosi termenii de căutare pentru a art

log-slow-queries log-lent-interogări - -- mysql long query time mysql lung timp de interogare - -- mysql long_query_time mysql long_query_time - -- long-query-time mysql lung-timp interogare mysql - -- how to log query time in mysql cum să vă autentificaţi în timp interogare mysql - -- mysql limit query time interogare mysql limită de timp - -- mysql long query mysql lung interogare - -- long query time interogare de mult timp - -- MYSQL SET LOG-SLOW-QUERIES Mysql set log-lent-interogări - -- mysql long queries mysql lung interogări - -- log-slow-queries 5 seconds log-lent-cereri de 5 secunde - -- max query time mysql max timp de interogare mysql - -- mysql query "time limit" MySQL interogare "limită de timp" - -- mysql query limits limitele de interogare mysql - -- mysql "query time limit" mysql "interogare limită de timp" - -- mysql set time limit mysql în timpul stabilit - -- vista mysql slow Vista mysql lent - -- "long query time" "interogare de mult timp" - -- change query slow schimba lent interogare - -- how to set limit to mysql query cum sa stabilit la limita de interogare mysql - -- limit query time mysql limită de timp interogare mysql - -- mysql freebsd log-slow-queries FreeBSD mysql log-lent-interogări - -- mysql slow query max mysql lent interogare max - -- mysql query time limit MySQL interogare limită de timp - -- mysql time limit query mysql limită de timp de interogare - -- mysql long quesry time mysql lung timp quesry - -- mysql query limit max limita maximă de interogare mysql - -- mysql long running queries mysql lung să fie difuzate de interogări - -- mySQL takes a long time to do a query mySQL ia mult timp pentru a face o interogare - -- slow query time limit lent interogare limită de timp - -- access query between Time Value() Timp de acces între interogare Valoare () - -- limit mysql query time limită de timp interogare mysql - -- mysql long_query_time mysql long_query_time - -- mysql changing slow query time mysql schimbare lentă timp de interogare - -- mysql slow query time mysql lent, timp de interogare - -- mysql log slow queries time option mysql log lent, timp de interogări opţiune - -- mysql long time query mysql mult timp interogare - -- mysql max query time max interogare mysql timp - -- mysql activate slow queries mysql lent activa interogări - -- set log slow queries set log lent interogări - -- slow log long query lent, lung jurnal interogare - -- wordpress mysql slow queries WordPress mysql lent interogări - -- "max query time" "max interogare timp" - -- enable slow query logs mysql windows permite lent jurnalele de interogări MySQL ferestre - -- how to change slow-query-time cum se schimba lent-query-timp - -- long query log lung jurnal interogare - -- mysql long running queries mysql lung să fie difuzate de interogări - -- mysql long running mysql lung să fie difuzate - -- slow log query time log lent timp de interogare - -- how to manage the long query in mysql cum de a gestiona în timp interogare mysql - --