Change or Set MySQL Long Query Time Value for log-slow-queries Maina vai Set MySQL Long Query Time Vērtība, kam log-lēni queries

If you Ja jūs enable slow queries log of MySQL database server ļauj lēni queries log no MySQL datu bāzes serveris , 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. , Jūs ievērosiet, ka no lēni query log fails satur tikai SQL pārskati un jautājumiem, kas prasīja vairāk nekā query_time 10 sekundes, lai veiktu vai darboties. This is the default value or query time threshold for log_slow_queries function, which is 10 seconds. Šī ir noklusējuma vērtības vai vaicājumu laika slieksni log_slow_queries funkcija, kas ir 10 sekundes. 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 sekundes ir pārāk ilgi uz SQL query, lai pabeigtu, tā vērtība var būt pārāk augstas, lai iegūtu jebkādu nozīmīgu informāciju. You can alter or change the slow query time to lower value or number of seconds. Varat mainīt vai mainīt lēns query laiku zemāko vērtību vai skaitu sekundes.

You can set a new long_query_time in the MySQL configuration file, namely my.cnf or my.ini, normally located in /etc directory. Jūs varat uzstādīt jaunu long_query_time ar MySQL konfigurācijas failu, proti my.cnf vai my.ini, parasti atrodas / etc direktorijā. Simply add the following line to the configuration file: Vienkārši pievienot šādas līnijas līdz konfigurācijas failu:

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. Virs iespēja noteikt lēns vai ilgu query ierobežojuma kā 5 sekundes, un tas nozīmē, MySQL būs uztveršanas un log visi SQL vaicājumi, ņēma ilgāk kā 5 sekundes, lai izpildīt un pabeigt neaudzē log failu.

IMPORTANT : The page is machine translated and provided "as is" without warranty. SVARĪGI: Šī lapa ir mašīna tulkoto un ar nosacījumu ", kas ir" bez garantijas. Machine translation may be difficult to understand. Machine translation var būt grūti saprast. Please refer to Lūdzu, skatiet original English article oriģināls angļu rakstu whenever possible. kad vien iespējams.


One Response to “Change or Set MySQL Long Query Time Value for log-slow-queries” Viena Atbilde uz "Mainīt vai Set MySQL Long Query Time Vērtība, kam log-lēni queries"

  1. Todd Todd
    June 20th, 2007 00:43 Jūnijs 20, 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. Apgalvo, ka "10 sekundes ir pārāk ilgi uz SQL query, lai pabeigtu" ir nedaudz bezatbildīgi, kā 10 sekundes, var būt pilnīgi saprātīgi, daži jautājumi, lai, ņemot vērā datu un aparatūras ir apšaubījušas pret kopā ar sarežģītību, vaicājumu.

    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. Redzot, par to, kā šī lapa ir ranking pietiekami augsts, lai cilvēki, kam veiktspējas jautājumiem, ar MySQL, es uzskatu, ka ir svarīgi, lai noteiktu šo taisni. One should not read this article and assume that their queries are performing unreasonably slow simply because they take over 10 seconds. Viens nevajadzētu lasīt šo rakstu un pieņemt, ka viņu queries veic nepamatoti lēns tikai tāpēc, ka tās veic vairāk nekā 10 sekundes.

Leave a Reply Atstāj atbildi

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> Jūs varat izmantot šos tagus: <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. Parakstīties uz komentāriem iezīme ir atspējota. To receive notification of latest comments posted, subscribe to Lai saņemtu paziņojumu par jaunāko komentāri norīkots darbā, abonēt My Digital Life Comments RSS feed Mani Digital Life Comments RSS feed or vai register to receive reģistrēties, lai saņemtu new comments in daily email digest. jauni komentāri ikdienas e-pasta sagremot.
Custom Search

New Articles Jauns pants

Incoming Search Terms for the Article Incoming Meklēt Noteikumi par pants

mysql long query time mysql ilgi query laiks - -- long query time ilgi query laiks - -- mysql long_query_time mysql long_query_time - -- mysql long queries mysql ilgi queries - -- mysql long-query-time mysql ilgtermiņa query-time - -- log-slow-queries log-lēni queries - -- long query time mysql ilgi query laika mysql - -- long-query-time long-query-time - -- mysql max query time mysql max query laiks - -- log slow queries log lēns queries - -- mysql long mysql ilgi - -- Slow query time Lēna query laiks - -- mysql slow query time mysql lēns query laiks - -- mysql change value mysql mainīt vērtība - -- set mysql noteikt mysql - -- long_query_time mysql long_query_time mysql - -- mysql set log_slow_queries mysql, kas log_slow_queries - -- mysql long query mysql ilgi query - -- mysql query time limit mysql query termiņā - -- mysql limit query time mysql ierobežot query laiks - -- mysql slow query time mysql lēns query laiks - -- mysql set long_query_time mysql, kas long_query_time - -- long mysql query ilgi mysql query - -- mysql query long mysql query ilgi - -- mysql set time limit mysql noteiktajā termiņā - -- set log-slow-queries noteikt log-lēni queries - -- mysql log query time mysql log query laiks - -- slow query log time lēns query log laiks - -- mysql query time mysql query laiks - -- long queries mysql ilgi queries mysql - -- mysql long query log mysql ilgi query log - -- mysql slow query log time mysql lēns query log laiks - -- MySQL + long request MySQL + ilgi pieprasījuma - -- mysql query_time seconds mysql query_time sekundes - -- mysql sql query time limit mysql SQL query termiņā - -- long query time my.cnf ilgi query laika my.cnf - -- mysql query taking long time mysql query ņemot ilgu laiku - -- set long time query in mysql , kas ilgu laiku query in mysql - -- mysql set long query time mysql, kas ilgu laiku query - -- mysql Query_time mysql Query_time - -- mysql set @@global.log_slow_queries mysql, kas @ @ global.log_slow_queries - -- mysql log long queries mysql log ilgi queries - -- log long query mysql log ilgi query mysql - -- mysql_slow_query.log Query_time mysql_slow_query.log Query_time - -- slow-query-time lēni query-time - -- mysql 5.0 long_query_time mysql 5,0 long_query_time - -- mysql "set @@log" mysql "set @ @ žurnāls" - -- set time for slow query log in mysql noteikts laiks lēns query žurnālā mysql - -- long-query-time mysql long-query-time mysql - -- Query_time slow query Query_time lēns query - --