mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Enable slow query log on dev DBs (#1437)
With this change, MySQL will log "slow" queries to the `mysql.slow_log` table.
This commit is contained in:
parent
cab8ed7c00
commit
07e7d336dd
@ -4,7 +4,7 @@ services:
|
||||
image: mysql:5.7
|
||||
volumes:
|
||||
- .:/tmp
|
||||
command: mysqld --datadir=/tmp/mysqldata
|
||||
command: mysqld --datadir=/tmp/mysqldata --slow_query_log=1 --log_output=TABLE --log-queries-not-using-indexes
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: toor
|
||||
MYSQL_DATABASE: kolide
|
||||
@ -15,7 +15,7 @@ services:
|
||||
|
||||
mysql_test:
|
||||
image: mysql:5.7
|
||||
command: mysqld --datadir=/tmpfs
|
||||
command: mysqld --datadir=/tmpfs --slow_query_log=1 --log_output=TABLE --log-queries-not-using-indexes
|
||||
tmpfs: /tmpfs
|
||||
environment:
|
||||
MYSQL_ROOT_PASSWORD: toor
|
||||
|
Loading…
Reference in New Issue
Block a user