From 42013fa438a3fd005d4180d2de83a36700d3cb49 Mon Sep 17 00:00:00 2001 From: Yngve Svendsen Date: Sat, 21 Mar 2015 08:26:58 -0400 Subject: [PATCH] Update on how to view logs: MySQL logs go to stderr. --- mysql/content.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mysql/content.md b/mysql/content.md index 16abf3660..81f41a929 100644 --- a/mysql/content.md +++ b/mysql/content.md @@ -38,10 +38,10 @@ The `docker exec` command allows you to run commands inside a Docker container. docker exec -it some-%%REPO%% bash -The MySQL Server log is located at `/var/log/mysql/error.log` inside the container, and the following command line from a shell inside the container will let you inspect it: +The MySQL Server log is available through Docker's container log: + + docker logs some-%%REPO%% - more /var/log/mysql/error.log - ## Using a custom MySQL configuration file The MySQL startup configuration is specified in the file `/etc/mysql/my.cnf`. If you want to customize this configuration for your own purposes, you can create your alternative configuration file in a directory on the host machine and then mount this file in the appropriate location inside the `%%REPO%%` container, effectively replacing the standard configuration file.