Merge "Set MySQL slow log to record every query"

This commit is contained in:
Jenkins 2013-01-23 20:31:13 +00:00 committed by Gerrit Code Review
commit 3b3a6d78a6

View File

@ -68,10 +68,10 @@ default-storage-engine = InnoDB" $MY_CONF
sudo sed -i -e "/^\[mysqld\]/ a \ sudo sed -i -e "/^\[mysqld\]/ a \
log-slow-queries = /var/log/mysql/mysql-slow.log" $MY_CONF log-slow-queries = /var/log/mysql/mysql-slow.log" $MY_CONF
# Log any query taking longer than a second # Log all queries (any query taking longer than 0 seconds)
sudo sed -i '/long.query.time/d' $MY_CONF sudo sed -i '/long.query.time/d' $MY_CONF
sudo sed -i -e "/^\[mysqld\]/ a \ sudo sed -i -e "/^\[mysqld\]/ a \
long-query-time = 1" $MY_CONF long-query-time = 0" $MY_CONF
# Log all non-indexed queries # Log all non-indexed queries
sudo sed -i '/log.queries.not.using.indexes/d' $MY_CONF sudo sed -i '/log.queries.not.using.indexes/d' $MY_CONF