mac 下安装 mariadb
时间:2014-05-15 17:53:53
收藏:0
阅读:913
通过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
评论(0)