Install Mariadb in Mac (OS X)

Open command prompt (Terminal),

1. run : brew update
if you haven't installed brew, run  this to install brew : ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
then run : brew update

2. run : brew install mariadb

3. run : unset TMPDIR

4. run : mysql_install_db --basedir={Installed Directory}
for example, mysql_install_db --basedir=/usr/local/Cellar/mariadb/5.5.32

5. run : mysql.server start (in bin directory, usr/local/Cellar/mariadb/5.5.32/bin)

6. to connect mariadb, run : mysql -uroot

7. in order to set secure options, run : mysql_secure_installation
you can set the options for security as well as password of root account.


Have a good day!

이 블로그의 인기 게시물

둘 중 누군가 그녀를 죽였다, 범인 해설

[MAC OS X] mds_stores 100% CPU usage

tips more on unity ...