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
Apache::Session::Store::MySQL(3pm)			User Contributed Perl Documentation			Apache::Session::Store::MySQL(3pm)

NAME
Apache::Session::Store::MySQL - Store persistent data in a MySQL database SYNOPSIS
use Apache::Session::Store::MySQL; my $store = new Apache::Session::Store::MySQL; $store->insert($ref); $store->update($ref); $store->materialize($ref); $store->remove($ref); DESCRIPTION
Apache::Session::Store::MySQL fulfills the storage interface of Apache::Session. Session data is stored in a MySQL database. SCHEMA
To use this module, you will need at least these columns in a table called 'sessions', or another table name if you provide the TableName argument: id char(32) # or however long your session IDs are. a_session text To create this schema, you can execute this command using the mysql program: CREATE TABLE sessions ( id char(32) not null primary key, a_session text ); If you use some other command, ensure that there is a unique index on the table's id column. CONFIGURATION
The module must know what datasource, username, and password to use when connecting to the database. These values can be set using the options hash (see Apache::Session documentation). The options are: DataSource UserName Password TableName Handle Example: tie %hash, 'Apache::Session::MySQL', $id, { DataSource => 'dbi:mysql:database', UserName => 'database_user', Password => 'K00l', TableName => 'sessions' }; Instead, you may pass in an already-opened DBI handle to your database. tie %hash, 'Apache::Session::MySQL', $id, { Handle => $dbh }; AUTHOR
This modules was written by Jeffrey William Baker <jwbaker@acm.org> SEE ALSO
Apache::Session perl v5.10.1 2010-10-18 Apache::Session::Store::MySQL(3pm)
All times are GMT -4. The time now is 06:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy