Created
January 4, 2023 11:59
-
-
Save garbinmarcelo/6f763735a46a35e8d934385c8a4aae35 to your computer and use it in GitHub Desktop.
docker-install-mariadb-with-slow-query
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker image mariadb 10.2.24 (https://hub.docker.com/_/mariadb) | |
~$ docker run --name mariadb -e MYSQL_ROOT_PASSWORD=root -p 3306:3306 -d docker.io/library/mariadb:10.2.24 --slow-query-log=TRUE --log-output=TABLE | |
# SQL check variables | |
SHOW VARIABLES LIKE 'slow_query%'; | |
SHOW VARIABLES LIKE 'log_output%'; | |
SHOW VARIABLES LIKE 'long_%'; | |
SELECT benchmark(100000000, md5('running query')); | |
SELECT * FROM mysql.slow_log; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment