LoginSignup
1
1

More than 5 years have passed since last update.

Mac OSX El Capitanにbrewで MariaDB+Mroonga環境を入れてNetCommons3(CakePHP2)で使う

Last updated at Posted at 2017-02-09

Mroonga+MariaDBインストール

参考 http://mroonga.org/ja/docs/install/os_x.html#install-os-x-homebrew

$ brew install https://raw.github.com/mroonga/homebrew/master/mroonga.rb --use-homebrew-mariadb

ここmariadbみつからんってエラーでたので brew update

$ brew update

ここでもまたエラー。No such file or directoryとか怒られる。

http://hkdnet.hatenablog.com/entry/2016/07/30/215925 を参考にbrew prune

$ brew prune

再度brew updateしてからインストールしたらちゃんとインストールできました。

MariaDBの起動・停止

MariaDB起動

$ brew services start mariadb

MariaDB停止

$ brew services stop mariadb

MAMP Pro環境のCakePHP2で利用する

DB接続できなくてNo such file or directory(だったかなうろ覚え^^;)でたのでmysql.sockの場所を app/Config/database.php で指定

        public $default = array(
            'datasource' => 'Database/Mysql',
            // (中略)
            'unix_socket' => '/tmp/mysql.sock', // これを追加
        );

ってことでMAMP ProのCakePHP2(NetCommons3環境)からMariaDB+Mroongaへ接続できるようになりました(^^)

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1