mac 下安装 mariadb

通过brew 安装:

1
brew install mariadb

初始化数据库

1
2
cd /usr/local/Cellar/mariadb/10.0.10/scripts
mysql_install_db --user=`root` --basedir="$(brew --prefix mariadb)" --datadir=/usr/local/var/mysql --tmpdir=/tmp

 开启自启动

1
2
cp $(brew --prefix mariadb)/homebrew.mxcl.mariadb.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mariadb.plist

 参考:

http://www.foolegg.com/how-to-setup-a-nginx-mariadb-php-mnmp-server-on-mac-osx/#title

mac 下安装 mariadb,布布扣,bubuko.com

mac 下安装 mariadb

上一篇:jsnop


下一篇:mongodb的安装及注意事项