MySQL Slow Queries Log: Lock_time

 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications MySQL Slow Queries Log: Lock_time
# 1  
Old 03-23-2009
MySQL Slow Queries Log: Lock_time

In MySQL's slow queries log, it'll have an entry like this:

Code:
# User@Host: scc_service[scc_service] @  [192.168.249.209]
# Query_time: 43  Lock_time: 0  Rows_sent: 0  Rows_examined: 0
SET timestamp=1237769209;
UPDATE loan SET funding_status="scheduled",datetime_approved=now() WHERE loan_id = '00000';

What does Lock_time refer to? Is that how long the query spent waiting for a lock, or how long this query locked the database?
# 2  
Old 03-26-2009
Lock_time indicates the time spent waiting for a lock, due to another query holding a lock
# 3  
Old 03-26-2009
Fantastic, thanks.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

Iptables Log in mysql

Hello all friends I am using ulogd with iptables to import iptables log into mysql but it is not working , Is there any way to log iptables log into mysql , i am using centos 6 Thanks (0 Replies)
Discussion started by: rink
0 Replies

2. Solaris

Delayed log in / Slow log in HP -Solaris 10

Hi, i am workiing on HP servers with solaris 10 SunOS vmsvApp01 5.10 Generic_142910-17 i86pc i386 i86pc i am facing a dealyed log in problem, As soon i log in ... server is taking around 40-50 seconds to prompt password. please suggest Anand, (1 Reply)
Discussion started by: anand87
1 Replies

3. Red Hat

Bind 9.x cannot log answers to queries

I know this is a duplicate question but the original has never been answered properly. I've got Bind 9.x set up on my box and the logging turned on. I can see queries being logged but I still can't get it to log the answers to those queries. Here is my named.conf file: # File: /etc/named.conf ... (2 Replies)
Discussion started by: Vadim B
2 Replies

4. Red Hat

BIND 9.x log answers to queries

Hi, Can anyone tell me how in BIND 9.x (running 9.7.3) do you configure it to put the answer to each query in the log. I see the query, the IP who asked the query but not what the answer to the query is. thanks for your help, Phil (3 Replies)
Discussion started by: pcblack23
3 Replies

5. Shell Programming and Scripting

Extract Mysql table output to a log file

I need to compare the 2 mysql database tables. there are around 50 tables in each DB. my idea is in DB1 extract result select * from table1; to alog file1 in DB2 extract result select * from table1; to alog file2 now compare log file 1 file 2 pls help me out ... thanks in advance (5 Replies)
Discussion started by: kalyankalyan
5 Replies

6. UNIX for Advanced & Expert Users

Monitoring cpu usage of mysql processes/threads/queries without any tool

hi all, i want to monitor mysql processes/threads/queries with respect to cpu usage.how can i do it? show processlist is of no use as no information abt cpu usage is given. plz help (7 Replies)
Discussion started by: rohitmahambre
7 Replies

7. Web Development

Tracing a Slow MySQL Query

We have a few slow queries in forums. I am trying to track them down and see if I can fix them somehow. Here is an example from our mysql-slow.log: # Time: 090929 9:04:54 # User@Host: unixdb @ localhost # Query_time: 7 Lock_time: 0 Rows_sent: 10 Rows_examined: 75157 SELECT... (2 Replies)
Discussion started by: Neo
2 Replies

8. Shell Programming and Scripting

Multiple MySql queries in shell script?

Hi guys, i know how to run a single query using mysql embedded in a shell script as follows: `mysql -umyuser -pmypass --host myhost database<<SQL ${query}; quit SQL` However, how would i be able to run several queries within the same connection? The reason for this is i am creating... (3 Replies)
Discussion started by: muay_tb
3 Replies

9. Shell Programming and Scripting

Performance of log parsing shell script very slow

Hello, I am an absolute newbie and whatever I've written in the shell script (below) has all been built with generous help from googling the net and this forum. Please forgive any schoolboy mistakes. Now to the qn, my input file looks like this - 2009:04:03 08:21:41:513,INFO... (7 Replies)
Discussion started by: sowmitr
7 Replies
Login or Register to Ask a Question