Sponsored Content
Special Forums UNIX and Linux Applications MySQL Slow Queries Log: Lock_time Post 302300219 by zefflyn on Monday 23rd of March 2009 02:16:50 PM
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?
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
MYLOADER(1)							     mydumper							       MYLOADER(1)

NAME
myloader - multi-threaded MySQL loader SYNOPSIS
myloader --directory = /path/to/mydumper/backup [OPTIONS] DESCRIPTION
myloader is a tool used for multi-threaded restoration of mydumper backups. OPTIONS
The myloader tool has several available options: --help Show help text --host, -h Hostname of MySQL server to connect to (default localhost) --user, -u MySQL username with the correct privileges to execute the restoration --password, -p The corresponding password for the MySQL user --port, -P The port for the MySQL connection. Note For localhost TCP connections use 127.0.0.1 for --host. --socket, -S The UNIX domain socket file to use for the connection --threads, -t The number of threads to use for restoring data, default is 4 --version, -V Show the program version and exit --compress-protocol, -C Use client protocol compression for connections to the MySQL server --directory, -d The directory of the mydumper backup to restore --database, -B An alternative database to load the dump into Note For use with single database dumps. When using with multi-database dumps that have duplicate table names in more than one database it may cause errors. Alternatively this scenario may give unpredictable results with --overwrite-tables. --queries-per-transaction, -q Number of INSERT queries to execute per transaction during restore, default is 1000. --overwrite-tables, -o Drop any existing tables when restoring schemas --enable-binlog, -e Log the data loading in the MySQL binary log if enabled (off by default) --verbose, -v The verbosity of messages. 0 = silent, 1 = errors, 2 = warnings, 3 = info. Default is 2. AUTHOR
Andrew Hutchings COPYRIGHT
2011, Andrew Hutchings 0.5.1 June 09, 2012 MYLOADER(1)
All times are GMT -4. The time now is 05:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy