mysqlをmbaにいれる

ちょっと入れとこうと思いまして。
ソースから行くのはひよってbrewでいれます。

iiwatobipen$ brew install mysql

はいったのでmysql_install_dbやったらなんか怒られる

iwatobipen$ mysql_install_db 
FATAL ERROR: Could not find ./bin/my_print_defaults

If you compiled from source, you need to run 'make install' to
copy the software into the correct location ready for operation.

If you are using a binary release, you must either be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

ググったところインストール先でやるといいって話らしく

iwatobipen$ cd /usr/local/Cellar/mysql/5.6.14/

といどうして

iwatobipen$ mysql_install_db 

iwatobipen$ mysql.server start
Starting MySQL
. SUCCESS! 

お後がよろしいようで

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s