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
# from http://dzone.com/snippets/analyse-binary-log | |
# cat /bin/mylog | |
#!/bin/sh | |
# usage: | |
#$ mylog /mysql-bin-log/db-bin.000223 | |
# 2132 insert into customers | |
# 1887 update userlog_access | |
# 788 insert into gn_commission | |
# 718 insert into con_tab |
Normally the installation of MySQL can be achieved with a single command, which executes a script provided by MacMiniVault :
bash <(curl -Ls http://git.io/eUx7rg)
However, at the time of writing the script is not compatible with OS X El Capitan (10.11)
An alternative to the aforementioned installation script is installing MySQL using Homebrew. This gist assumes you already have Homebrew installed, if not first read the article "Homebrew and El Capitan"
Make sure Homebrew has the latest formulae, so run brew update
first