Install mariaDB using brew on OS X 10.11 El Capitan

step one
#You should uninstall outdated mysql/mariaDB

brew uninstall mysql
brew uninstall mariadb

Delete things about DB.

step two
#To install MariaDB
at this step MariaDB may need you install openssl, because of this DB is dependent on openssl.
and this will automatically.

brew install maria

step two point one
YOU MUST DO ‘unset TMPDIR’ in your command line and I don’t know what the reason is.
Otherwise, mysql service couldn’t boot.

unset TMPDIR

step three
#After install mariadb, you should start MariaDB daemon by command

mysql.server start

step four
#init you databases by default conf


step five
#And then. You should configure your password for root. by this

mysqladmin -u root password 'PasswordHereEForRoot'

You should get some positive feedback on that action:

Starting MySQL

that’s all, have FUN…


电子邮件地址不会被公开。 必填项已用*标注