MySQL Forums
Forum List  »  Optimizer & Parser

Re: Determine time taken by commit statement after insert or update statement
Posted by: Jesús Uzcanga
Date: May 07, 2018 08:43AM

Hey Priya.

You can activate the slow query log

In you my.ini or my.cnf configuration file:

[mysqld]
slow_query_log = 1
slow_query_log_file =/var/log/mysql-slow-query.log
long_query_time=1

where long_query_time is the time required for any script to be looged... If you set that value in zero it will log everything.

___________________________
Ing. Jesús Alfredo Uzcanga
Twitter: @JesusUzcanga

We learn the 20% of what we HEAR,
the 50% of what we SEE,
the 80% of what we DO and
the 95% of what we TEACH.

____________________________________________________________
https://www.linkedin.com/in/jauzcanga/

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Determine time taken by commit statement after insert or update statement
645
May 07, 2018 08:43AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.