I'm trying to install mysql on MAC OS version 10.11.2 by following the methods in this link,
The following command has been successfully executed,
brew install mysql
but when I type the following command,
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
I get the following error:
mysql_install_db: [ERROR] unknown variable 'tmpdir=/tmp'
2015-12-17 17:35:54 [ERROR] Unrecognized options
Please help. Thanks in advance.
Based on this link: https://bugs.launchpad.net/mysql-sandbox/+bug/1396092 and this https://blog.omgmog.net/post/installing-mysql-on-os-x-mountain-lion/ It looks like you may simply need to
unset TMPDIR
prior to running the install_db command.All credit goes to coder wall
Remove MySQL completely
Reinstall MySQL with Homebrew
Try running this, it worked for me. (Got it from the comments found here)
Posting here just in case anyone faced the same problem as me.