Friday, May 1, 2015

Installing MariaDB 10.0.10 on Mac OS X with Homebrew

Install homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

$ brew doctor

$ brew update

$ brew info mariadb

$ brew instal mariadb

$ unset TMPDIR

$ cd /usr/local/Cellar/mariadb/10.0.17/

$ mysql_install_db

Start MariaDB
$ mysql.server start

$ mysql_secure_installation

Connect to MariaDB
$ mysql -u root -p

Verify MariaDB Version
> select @@version;

Install phpMyAdmin [2]
Start Web Server of Mac OSX [3,4]
$ sudo apachectl start

$ sudo vi /etc/apache2/httpd.conf
LoadModule php5_module

To fix MySql 2002 socket error [5]
$ sudo mkdir /var/mysql
$ sudo ln -s /tmp/mysql.sock /var/mysql/mysql.sock

$ mkdir /Library/WebServer/Documents/phpmyadmin/config
$ chmod 777 config

Connect to http://localhost/phpmyadmin/setup

$ mv config.inc.php ../


reference
[1] https://mariadb.com/blog/installing-mariadb-10010-mac-os-x-homebrew
[2] http://nsnotification.blogspot.kr/2013/05/phpmyadmin.html
[3] http://blog.iolate.kr/160
[4] http://blog.iolate.kr/19
[5] http://coolestguidesontheplanet.com/installing-phpmyadmin-on-mac-osx-10-7-lion/

1 comment:

Anonymous said...

pleasant instruction regarding installing MariaDB 10. 0. 10 in Mac OPERATING-SYSTEM X along with Homebrew in MariaDB's recognized website. Work has been done to produce MariaDB through the Homebrew deal manager, which has been termed the absent package boss for Mac OS A. Once you might have installed Homebrew.

cheap essay writing service