Last active
June 12, 2016 07:30
-
-
Save jazlopez/2cec7d9ba85628e4bd6ba57d1eed3bd1 to your computer and use it in GitHub Desktop.
OSX | Mysql | List location of log files
This file contains 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
#!/usr/bin/env bash | |
mysql -se "SHOW VARIABLES" -u :user -p | grep -e log_error -e general_log -e slow_query_log | |
# Response: | |
# | |
# general_log OFF | |
# general_log_file /usr/local/var/mysql55/:user.log | |
# log_error /usr/local/var/mysql55/:user.err | |
# slow_query_log OFF | |
# slow_query_log_file /usr/local/var/mysql55/:user-slow.log | |
## |
Author
jazlopez
commented
Jun 12, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment